| image is an array of bytes that describes the color of each pixel in the image in raster order. The value of image depth determines how LabVIEW interprets the value of this output.
If image depth is 24, each pixel has three bytes to describe its color. The first byte for each pixel describes the red value, the second byte describes the green value, and the third byte describes the blue value.
If image depth is 8, each pixel has one byte to describe its color. The value of each bit corresponds to an element in colors, which stores 32-bit RGB values where the most significant byte is zero, followed in order by red, green, and blue values. Valid values include 0 through 255.
If image depth is 4, the behavior is similar to when image depth is 8 except valid values in image include 0 through 15.
If image depth is 1, any value of zero in image corresponds to element 0 in colors. All other values correspond to element 1 in colors.
The size of the array might be larger than expected due to padding.
|