Tag Archive for 'captureimage()'

25
Aug

Saving files locally using the FileReference class’s save() method in Flash Player 10

The following example shows how you can use the FileReference class’s new save() method in Flash Player 10 to save text, XML, and image files to a user’s hard drive.

Full code after the jump.

Continue reading ‘Saving files locally using the FileReference class’s save() method in Flash Player 10′

08
Dec

Setting a default encoder for the ImageSnapshot class in Flex 3

The following example shows how you can set the ImageSnapshot class’s static defaultEncoder property in Flex 3 to set a default image encoder for captured images.

Full code after the jump.

Continue reading ‘Setting a default encoder for the ImageSnapshot class in Flex 3′

07
Dec

Converting an ImageSnapshot object into a Base-64 encoded string in Flex 3

The following example shows how you can convert an ImageSnapshot object into a Base-64 encoded string using Flex 3’s cleverly named encodeImageAsBase64() method.

Full code after the jump.

Continue reading ‘Converting an ImageSnapshot object into a Base-64 encoded string in Flex 3′

16
Nov

Taking screenshots in Flex 3 using the ImageSnapshot.captureImage() method

The following example shows how you can use the static captureImage() method in the mx.graphics.ImageSnapshot class to take a screenshot of an item on the display list, convert it into a ByteArray, and display the ByteArray using a SWFLoader control.

Full code after the jump.

Continue reading ‘Taking screenshots in Flex 3 using the ImageSnapshot.captureImage() method’