LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

labview color interpretation

i am creating a color *.bmp file in windows using paint, FTP it over into unix, dump the picture into Xview using XWD > commmand, and then import the picture into labview to create a picture in labview. to create the labview picture i use edit, import picture from file, then choose the file. the problem is, when i view the picture in labview, all of the colors are mixed up ie a yellow box in the .bmp file is a cyan box in the labview window. And vice versa, a cyan box in the .bmp file is a yellow box in labview. this color mix-up pertains to every color used. ie a red box in .bmp is another color in labview.

fahlers suggested: It looks like the sequence of the 3 RGB values that make up a color value is reversed somehow. Yellow (normally RGB = hex 00 FF FF) is in LV represented as hex FF FF 00). If you reverse FF FF 00 to 00 FF FF, you'll have cyan in LV.

is there a practical way of doing this in labview, changing the way labview interprets color hex values? In other words, labview is reading hex color values as "33 22 11", and i need it to read hex color values as "11 22 33."
0 Kudos
Message 1 of 2
(2,576 Views)
If your importing the picture into a LabVIEW piture control I would take the output color array and transpose the colors. The RGB VIs can be found in "Graphics & Sounds >> Picture Functions"...

See attatched picture:
0 Kudos
Message 2 of 2
(2,567 Views)