LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

creating transparent PNG

Is it possible to produce a panel image with a transparent background? Reading the image, replacing the background color with transparent in the color table then writing back out does not work.
0 Kudos
Message 1 of 2
(2,755 Views)
> Is it possible to produce a panel image with a transparent background?
> Reading the image, replacing the background color with transparent in
> the color table then writing back out does not work.

The transparent color is really just a LV concept. It is a symbolic
color that makes sense to many panel areas, but in a color table, it
looks just like black, or dark dark blue.

If you want to place a png on the panel, use the clipboard or
Edit>Import Image. If you want the png to have transparency, most paint
packages that produce pngs will have the notion of a mask or an alpha
channel. Make the mask or alpha channel to specify which portions of
the image are opaque, which are transparent, and which are translucent,
and associate it with the image
and save as a png.

If you are trying to save out a png with a mask, there are a number of
additional image icons in LV7, including one that applies a color
masking operation. You might want to try to use the mask icon and wire
the output to the png writer.

Greg McKaskle
Message 2 of 2
(2,755 Views)