Page 1 of 1
Image Transparent Color
Posted: Fri Nov 02, 2012 7:27 am
by thebelg
How can I set the "transparent"-color of an Image-object (JPG or png) so that I get some Parts of my Image Transparent to the underlining one.
Re: Image Transparent Color
Posted: Fri Nov 02, 2012 3:47 pm
by FourthWorld
JPG doesn't support transparency.
IIRC PNG supports it through the alpha channel, rather than through the setting of a color as with GIF.
PNG alpha data can be obtained through the image's alphaData property, and you can manipulate those pixels however you want.
Re: Image Transparent Color
Posted: Fri Nov 02, 2012 11:45 pm
by dunbarx
Hi. You can set the blendLevel of an image.
Import a JPEG as "a control" from the "File" menu. There are a million forms of "ink", though the default is "srcCopy". Put your image above another object. The transparency can be adjusted as required.
Craig Newman
Re: Image Transparent Color
Posted: Sat Nov 03, 2012 9:25 am
by thebelg
Thanks a lot for the informations.
I've transfered the Images into PNG (with GIMP) and adding a Alpha-Level.
Greets