Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

how can i save transparent image

Solved!
Go to solution

I would like to save an image with transparent but it only shows a grey background. It looks like all image information are lost when I rebuilt

the image out of the array (IMAG array to image.vi).

For clarification I attached the vi.

 

Thanks for the help!

 

 

Download All
0 Kudos
Message 1 of 6
(3,995 Views)

Does anybody knows why I can not save the changed image?

 

 

0 Kudos
Message 2 of 6
(3,960 Views)

Hmm... There are many reasons why you can't do it in such way:

 

why.png

Message 3 of 6
(3,954 Views)
Solution
Accepted by topic author Norick_17

If you need to store "transparent" image into file and load it back without parsing, then you can use the fact that overlay can be saved in PNG file with vision info.

Something like that:

 

snippet.png

 

Result will be:

 

FP.png 

 

 

Andrey.

 

Message 4 of 6
(3,953 Views)

Hi Andrey

thank you very much for your explinations! This solution is exactly what I have been looking for...

 

 

best regards

                 Norick

0 Kudos
Message 5 of 6
(3,932 Views)
Can you please attach this VI in an older labview version (8.6). Thank you!
0 Kudos
Message 6 of 6
(3,641 Views)