all groups > flash actionscript > april 2005 >
You're in the

flash actionscript

group:

how to make image transparent ??



how to make image transparent ?? bhavin_kp
4/26/2005 12:00:00 AM
flash actionscript: hi every one,

I want to make background of image transparent.
Image is called from dynamically from the visitor?s computer.
and I want to remove background color of image.
Can anybody provide me solution for make pixel transparent of image uploaded
by visitor?
So please anybody have solution of these criteria?

For an Example: I am attaching image here and I want to remove gray color so I
can see through transparent area of Picture.

http://b.domaindlx.com/bhavin/cup.jpg

thanks
Re: how to make image transparent ?? David Stiller
4/26/2005 9:36:18 AM
bhavin_kp,

[quoted text, click to view]

The only image format you can load dynamically into Flash is JPG, and
JPGs do not feature alpha channels (they cannot be transparent).

Try loading an external SWF instead. If you use PNG inside the SWF, you
can get your transparency.


David
stiller (at) quip (dot) net
"Luck is the residue of good design."

Re: how to make image transparent ?? David Stiller
4/27/2005 12:00:00 AM
[quoted text, click to view]

I use Photoshop to make PNGs with transparency. Use your graphics
editor of choice. :)


David
stiller (at) quip (dot) net
"Luck is the residue of good design."

Re: how to make image transparent ?? Jan-Paul K.
4/27/2005 12:00:00 AM
hi,

you will have to create the png using an external tool like Photoshop etc. you can not set a certain color to transparent within flash at runtime.

Regards,
Re: how to make image transparent ?? livingwithanangel
4/27/2005 12:00:00 AM
get the image how you want it in photoshop, in a layer. Delete the parts you
don't want showing in the final file. Go FILE>SAVE FOR WEB and choose PNG2-4,
check off the transparancy box and save it. When you bring the png into flash,
it will retain the transparency you set in photoshop.
Re: how to make image transparent ?? Jeckyl
4/27/2005 12:00:00 AM
[quoted text, click to view]

That's a limitation of Flash that you can't set a transparent color for
imported images, like you can do directly in SWiSHmax. Instead you have to
use a good image editor along with Flash in order to do the transparency
stuff, then save in a format that retains transparency info (often PNG,
sometimes GIF for images with less color).

Jeckyl

Re: how to make image transparent ?? Rai_Kane33
4/27/2005 12:00:00 AM
Re: how to make image transparent ?? bhavin_kp
4/27/2005 4:39:09 AM
thanks david

but how do i transparent png image ???
AddThis Social Bookmark Button