Quantcast
Channel: LabWindows/CVI topics
Viewing all articles
Browse latest Browse all 5417

Save image with palette information

$
0
0

Hello!

 

Currently, I acquire a grayscale image with a MANTA camera. Then I display this image in an image window (NI Vision) and I apply to this image a gradient palette.

I would like to save it WITH the palette as png file.But so far it is always saved as grayscale picture, without taking account of the previous palette.

 

Here is how I save the image :

 

FileSelectPopupEx(......, PathName);

imaqWriteFile(image, PathName, NULL);

 

I tried to write IMAQ_PALETTE_GRADIENT rather than NULL, but an error occurs because it is not a RGB Value array.

 

How can I manage to do that?

 

Best regards,

thomas1330


Viewing all articles
Browse latest Browse all 5417

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>