Page 1 of 1

setImageOpacity

Posted: 2008-09-22T00:43:05-07:00
by hsshch
Hello,

i have a .gif (not animated) image with transparent background and i want to change the opacity of the image. but when i use the setImageOpacity function, the opacity of transparent areas change too. for example if i call the function with "0.5" the transparent areas will be white.

What can i do to change the opacity of the image and keep the transparent areas transparent?

Thank you in advance.

Re: setImageOpacity

Posted: 2008-09-22T02:49:46-07:00
by hsshch
I found my answer in another post. please ignore this.

Re: setImageOpacity

Posted: 2008-10-07T12:25:55-07:00
by badabou
Hello,

I have a same problem, have you the answer ?

Thank.

Re: setImageOpacity

Posted: 2008-10-20T13:38:20-07:00
by mkoppanen
Hi,

setImageOpacity is a comfortability method to change whole images opacity at once. you can probably use something like fxImage to achieve the effect.