GetHierImgScaled
- Updated2025-07-30
- 3 minute(s) read
Gets the scaled image of the VI Hierarchy.
Syntax
object.GetHierImgScaled(imgdepth, imgdata, maxwidth, maxheight, VIToHighlight)Parameters
| Name | Type | Description |
|---|---|---|
| imgdepth | long | Indicates the color depth, or number of supported colors, of the image: 1 (1-bit, black and white), 4 (4-bit, 16 colors), 8 (8-bit, 256 colors), or 24 (24-bit, true color). The default is 8. |
| imgdata | ImageData |
Information about the image so you can use the Draw Flattened Pixmap VI to draw it as a picture or use the Graphics Formats VIs to save the image to a file.
|
| maxwidth | long | Specifies the width of the returned image. If this input is 0, the width of the returned image is the same size as the default image when it is displayed in the VI Hierarchy window in LabVIEW. Also, LabVIEW cannot distort the returned image if the specifiedMaximum Width and Maximum Height parameters do not retain the same ratio as the default image. |
| maxheight | long | Specifies the height of the returned image. If this input is 0, the height of the returned image is the same size as the default image when it is displayed in the VI Hierarchy window in LabVIEW. Also, LabVIEW cannot distort the returned image if the specifiedMaximum Width and Maximum Height parameters do not retain the same ratio as the default image. |
| VIToHighlight | variant | Specifies the VI to highlight within the hierarchy image. In addition to placing a purple border around the specified VI, LabVIEW expands or collapses the hierarchy to focus on the VI. |
Return Value
none