How to achieve transperancy plz help?
| Tue, 2007-10-23 06:36 | |
|
|
Hi i want to achieve transperancy in my application. I mean to say, how i can draw the transperant images so that i can see the background image for eg: when i press options button on some screen, the popup will come, behind that popup Waiting for more replies if u have any sample code plz share with me!!! Thanks in Advance |






Forum posts: 42
have to achieve transperancy using BMP or PNG files!!!!!!
thanks
Hidayath
Forum posts: 71
I dont have a code ..
hope ths link help
http://www.newlc.com/forum/bitmap-and-bitmap-mask
Forum posts: 42
Hi
u can see this link for code
http://discussion.forum.nokia.com/forum/showthread.php?p=354510#post354510
Thanks
Hidayath
Forum posts: 42
PNG files are used to do this
Thanks
Hidayath
Forum posts: 1134
Well, technically, you can use any image format that supports alpha information as long as you can manage to load it into a bitmap and a mask for the bitmap.
PNG is supported by the (very weird) icon API, so that is a possibility.
Other possibilities are mbm files (through normal bitmap loading), or SVG files (also via the icon api), or through the CImageDecoder API.
imagedecoder demands that you have the transparency mask and the image in separate files though, and mbm demands you have two bitmaps, one normal and one mask bitmap in it.
On 3rd edition, its also possible to use the image format EColor16MA which have 32 bit pixels with embedded alpha channel, but unfortunatly there isnt much support to load images into this format, and its not very prioritized by Symbian, so it might be slow in some versions, or have slightly incompatible behaviour...