Get Image Subset VI
- Updated2025-07-30
- 8 minute(s) read
Returns a subset of a source image instead of the entire image. Use the Picture to Pixmap VI to convert a picture to a cluster you can wire to image data.
If you wire 32-bit image data to this VI, the VI strips the alpha channel and returns 24-bit image data.

Inputs/Outputs
image data
—
image data describes the image you want to draw or manipulate.
subset rect
—
subset rect is a cluster that contains coordinates that describe the bounding rectangle of the image subset. If the coordinates do not describe a valid rectangle, the VI coerces the coordinates to a valid rectangle and returns the coerced coordinates in true subset rect.
image subset
—
image subset returns information about the image subset so you can use the Draw Flattened Pixmap VI to draw the image as a picture or use the Graphics Formats VIs to save the image to a file.
true subset rect
—
true subset rect is a cluster that contains coordinates that describe the bounding rectangle of the image subset returned by the VI.
|
Examples
Refer to the following example files included with LabVIEW.
- labview\examples\Graphics and Sound\2D Picture Control\Pen Attributes And Image subsetting.vi
image data
—
image type
—
image
—
colors
—
Rectangle
—
left
—
image subset
—
image type
—
image
—
colors
—
Rectangle
—
left
—