LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

figure color different when viewed in labview

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. Is there some sort of color filter that i am not aware of? why is this happening?
0 Kudos
Message 1 of 3
(2,512 Views)
benannino,

I'm not sure why you're seeing different colors from what you specify, but when I create a .bmp file with cyan, yellow, and red in MSPaint and import it into LabVIEW, I don't have the same problem. So my guess is that the problem is in all the transferring and manipulation that you are doing. Have you checked the file each step of the way to see if the colors are changing before it comes into LabVIEW?

Tyler S
0 Kudos
Message 2 of 3
(2,490 Views)
I don't see this under Windows

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.

(Seems to be the same BIG ENDIAN vs. LITTLE ENDIAN number representation convention. Searching for ENDIAN in this forum gives more Information on that)

-Franz
0 Kudos
Message 3 of 3
(2,484 Views)