--- In [email protected], "ouaqa" <abenef...@...> wrote:
>
> good morning fellow flexers. 
> 
> I've been struggling for the last 3 days with a very frustrating problem.
> 
> In a photo manipulation project, I use a canvas where I handle images.
> So, an image is displayed in a canvas and I want to add a new image on top of 
> it, let's say a cool wood-looking frame. The first image is a jpg embedded 
> but the second image, the frame, is a transparent 32bits png file loaded on 
> demand.
> The png file is transparent, as far as I can tell in photoshop. Yet, when I 
> load it, all the transparent bits appear white.
> 
> This problem is making me crazy and I don't know how to handle it. Any help 
> would be appreciated.

In your new BitmapData() call, stop passing in the parameter that says what 
color to fill the new BitmapData with.  Your call to draw() will not fill those 
solid pixels with transparent pixels from your image--it will only draw the 
pixels that have some level of opacity.

HTH;

Amy

Reply via email to