02-25-2008 03:45 PM
02-25-2008 04:16 PM
02-25-2008 04:55 PM
02-25-2008 05:06 PM
02-25-2008 06:14 PM
02-25-2008 11:15 PM
02-26-2008 01:55 AM
To create a semi-transparent image, you can break each pixel into its RGB values, average these values with the RGB values of what's supposed to be under it and then build the result back into the 32 bit numbers. I assume that for alpha transparency, you will need to do averaging which will take the alpha value into account. To get the RGB value, you can go over the image a loop and use the color to RGB VI, but I'm pretty sure using the Split number function on the 2D U32 array twice will also get you the correct values.
russelldav wrote:
If I could find a way to return the content of my base image in the pixels where my alpha mask is - then I could use that to generate an image that gave the illusion of transparency?
02-26-2008 04:00 AM
See this note for an example.
http://digital.ni.com/public.nsf/websearch/00736861C29ADFB786256D120079D119
02-26-2008 09:31 AM
TonP wrote:
The Image cluster, from read PNG.vi contains these info.
In the 24 bit image info the first byte is the alpha channel.
Ton