LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Color and depth lost when reading PNG

Hello,

I'm using IMAQ Read Image And Vision Info.vi to read a PNG saved with IMAQ Write Image And Vision Info.vi. The saved image is 24 bits, color. When I open the image and display it using an image control, it shows up as an 8-bit grayscale. How do I get it to open in color?

Thanks.
0 Kudos
Message 1 of 3
(2,593 Views)
Are you passing a 24-bit color image into the image terminal of this VI? Most likely, you have the default Grayscale (U8) Image type for the initialization of the image that you feed into the IMAQ Read Image And Vision Info.vi. It is a terminal on the bottom of the IMAQ Create vi.

Hope that this helps,
Bob
Message 2 of 3
(2,581 Views)
Thanks!
0 Kudos
Message 3 of 3
(2,577 Views)