Image Transparent Color
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Image Transparent Color
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.
-
- VIP Livecode Opensource Backer
- Posts: 10052
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Image Transparent Color
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.
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.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: Image Transparent Color
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
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
Thanks a lot for the informations.
I've transfered the Images into PNG (with GIMP) and adding a Alpha-Level.
Greets
I've transfered the Images into PNG (with GIMP) and adding a Alpha-Level.
Greets