How to achieve transperancy plz help?

Login to reply to this topic.
Tue, 2007-10-23 06:36
Joined: 2007-10-01
Forum posts: 42

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
as well.

for eg: when i press options button on some screen, the popup will come, behind that popup
there will be transperant image, thru that transperant image still we can able to see the
background image.

Waiting for more replies

if u have any sample code plz share with me!!!

Thanks in Advance
Hidayath


Tue, 2007-10-23 06:37
Joined: 2007-10-01
Forum posts: 42
Re: How to achieve transperancy plz help?

have to achieve transperancy using BMP or PNG files!!!!!!

thanks
Hidayath

Tue, 2007-10-23 07:17
Joined: 2007-09-19
Forum posts: 71
Re: How to achieve transperancy plz help?

I dont have a code ..
hope ths link help
http://www.newlc.com/forum/bitmap-and-bitmap-mask

Tue, 2007-10-23 10:04
Joined: 2007-10-01
Forum posts: 42
Re: How to achieve transperancy plz help?

Hi

u can see this link for code

http://discussion.forum.nokia.com/forum/showthread.php?p=354510#post354510

Thanks
Hidayath

Tue, 2007-10-23 10:10
Joined: 2007-10-01
Forum posts: 42
Re: How to achieve transperancy plz help?

PNG files are used to do this

Thanks
Hidayath

Wed, 2007-10-24 13:59
Joined: 2004-11-29
Forum posts: 1134
Re: How to achieve transperancy plz help?

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...

  • Login to reply to this topic.