LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Save image with palette information

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

0 Kudos
Message 1 of 1
(4,186 Views)