Flatten Pixmap VI
- Updated2025-01-28
- 6 minute(s) read
Flatten Pixmap VI
Converts pixmap data from a 2D array to a 1D array.
You can write the resulting 1D array to a file or use the low-level Draw Flattened Pixmap VI to view it.

Inputs/Outputs
![]() top left specifies in coordinates where to place the top-left corner of the image.
![]() 24-bit pixmap is the 2D array of data to convert to image data. The dimensions of the image data match the dimensions of this array. ![]() 8-bit pixmap is the 2D array of data to convert to image data. The dimensions of the image data match the dimensions of this array. The VI uses the data as indexes into the color array. ![]() 4-bit pixmap is the 2D array of data to convert to image data. The dimensions of the image data match the dimensions of this array. The VI uses the data as indexes into the color array. ![]() 1-bit pixmap is the 2D array of data to convert to image data. The dimensions of the image data match the dimensions of this array. Elements that are FALSE map to element 0 in the color table. Elements that are TRUE map to element 1 in the color table. ![]() colors is an array of RGB color values that correspond to the values in the pixmap input you wire. Which pixmap input you wire determines how LabVIEW interprets the value of this input. If you wire data to 24-bit pixmap, LabVIEW ignores this input. If you wire data to 8-bit pixmap, the array can have 256 elements. If you wire data to 4-bit pixmap, the array can have 16 elements. If you wire data to 1-bit pixmap, the array can have 2 elements. If the colors array is empty for any depth other than 24 bits per pixel, the image uses the default LabVIEW color palette. ![]() mask is a 1D array that describes mask information for each pixel. If the mask array is empty, LabVIEW draws all resulting pixels without transparency. ![]() image data returns information about the pixmap so you can use the Draw Flattened Pixmap VI to draw the pixmap as a picture or use the Graphics Formats VIs to save the pixmap to a file.
|