PDA

View Full Version : Capturing screen


charithao
07-04-2008, 11:59 AM
Hi,

How could I capture part of the screen in Flex3 or AIR. My screen is bigger than the limit of the BitmapData object. So I need to capture a rectangular area from any part of the application. Please guide me in this.

Thanx

Sly_cardinal
07-04-2008, 01:59 PM
Check out the ImageSnapshot class:

http://livedocs.adobe.com/flex/3/langref/index.html?mx/graphics/ImageSnapshot.html&mx/graphics/class-list.html

It simplifies taking screenshots of your flex app *and* gets around the 2880x2880 size limitation (how cool is that?!).

More info and examples here:

http://blog.flexexamples.com/2007/11/16/taking-screenshots-in-flex-using-the-imagesnapshotcaptureimage-method/

http://dougmccune.com/blog/2007/06/11/imagesnapshot-class-in-flex-3-sdk/

charithao
07-07-2008, 03:51 AM
Thank you very much. It's the one I wanted. Keep up the good work