Draw Flattened Pixmap (Not in Base Package)

Draws a 1, 4, or 8-bit pixmap or a 24-bit RGB pixmap into a picture. This VI takes a 1D array of bytes as input and assumes all packing and padding is done by the user. Details

bit depth specifies the color depth of data. Its possible values are 1, 4, 8, or 24 bits per pixel. Its default is 8.
picture specifies the picture to which you want to add the array of data. It defaults to an empty picture.
rect is a cluster containing the upper-left and lower-right coordinates that describe a rectangle bounding the data. The data will be conformed to the width of this rectangle and clipped to the height of this rectangle. All coordinates are absolute.
left is the horizontal coordinate of the left edge of the rectangle.
top is the vertical coordinate of the top edge of the rectangle.
right is the horizontal coordinate of the right edge of the rectangle.
bottom is the vertical coordinate of the bottom edge of the rectangle.
flattened pixmap data is a one-dimensional array of 1-byte data that LabVIEW draws as a pixmap in the picture. The array is made up of a concatenation of rows of data. Within each row, data is packed into the array of bytes. If bit depth is 1, each byte represents 8 pixel values, if bit depth is 4, each byte represents two pixel values, and if bit depth is 8, each byte represents one pixel value.

Each row should be padded to a multiple of two bytes long.

color table is an array of RGB color values to which the array of data maps. If unwired, the VI uses the default LabVIEW color palette.
new picture contains the new picture created using this VI.

Draw Flattened Pixmap Details

You can use this VI with one of the Graphics Formats VIs that reads graphics files in a flattened format. You also can produce flattened pixmap data using the Flatten Pixmap VI. Use the Unflatten Pixmap VI to unflatten data for use with one of the other VIs used to draw pixmaps.