[flexcoders] ImageSnapshot.captureBitmapData with transparency on Windows (Vista)

2008-11-20 Thread Ian M. Jones
Hi all,

I've noticed that using ImageSnapshot.captureBitmapData on Windows  
with a component that has a transparent background returns a bitmap  
that has a solid black fill where it should be transparent, whereas on  
Mac OS X it correctly captures the transparency.

Does anyone know if there is any way to get the capture on Windows to  
honour the transparency, or am I going to have to keep on temporarily  
setting the background of the component to white (so it'll at least  
print nicely) before the capture?

Is there maybe a way to use ImageSnapshot.captureImage with PNG  
encoding and then convert the result to BitmapData for later setting  
to the Clipboard?

Thanks in advance for any help.

Regards,

Ian

IMiJ Software
http://www.imijsoft.com
http://www.ianmjones.net (blog)



Re: [flexcoders] ImageSnapshot.captureBitmapData with transparency on Windows (Vista)

2008-11-24 Thread Ian M. Jones

Hi all,

It's been a few days since I sent the message below, and with many  
people now back from MAX and the weekend, I thought I'd just bump it  
to see if anyone has any ideas?


Thanks,

Ian

On 21 Nov 2008, at 00:18, Ian M. Jones wrote:


Hi all,

I've noticed that using ImageSnapshot.captureBitmapData on Windows
with a component that has a transparent background returns a bitmap
that has a solid black fill where it should be transparent, whereas on
Mac OS X it correctly captures the transparency.

Does anyone know if there is any way to get the capture on Windows to
honour the transparency, or am I going to have to keep on temporarily
setting the background of the component to white (so it'll at least
print nicely) before the capture?

Is there maybe a way to use ImageSnapshot.captureImage with PNG
encoding and then convert the result to BitmapData for later setting
to the Clipboard?

Thanks in advance for any help.

Regards,

Ian

IMiJ Software
http://www.imijsoft.com
http://www.ianmjones.net (blog)