Archive for December 7th, 2007

07
Dec

Using the ImageSnapshot class to capture images as JPEGs or PNGs in Flex 3

The following example shows how you can use the ImageSnapshot class to capture images as JPEGs or PNGs by setting the encoder parameter in the ImageSnapshot class’s static captureImage() method in Flex 3.

Full code after the jump.

Continue reading ‘Using the ImageSnapshot class to capture images as JPEGs or PNGs 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′