<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Using the ImageSnapshot class to capture images as JPEGs or PNGs in Flex 3</title>
	<link>http://blog.flexexamples.com/2007/12/07/using-the-imagesnapshot-class-to-capture-images-as-jpegs-or-pngs-in-flex-3/</link>
	<description>A bunch of examples for Adobe Flex and ActionScript</description>
	<pubDate>Sun, 07 Sep 2008 00:24:42 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>

	<item>
		<title>By: Indigo Sanj</title>
		<link>http://blog.flexexamples.com/2007/12/07/using-the-imagesnapshot-class-to-capture-images-as-jpegs-or-pngs-in-flex-3/#comment-12043</link>
		<author>Indigo Sanj</author>
		<pubDate>Wed, 16 Apr 2008 14:27:59 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/12/07/using-the-imagesnapshot-class-to-capture-images-as-jpegs-or-pngs-in-flex-3/#comment-12043</guid>
		<description>hi! Is this the quickest way to create a png from a Flex component?  I am trying to create a button such as "view PNG" and have my flex chart opened in a web-browser window as a png.

any ideas</description>
		<content:encoded><![CDATA[<p>hi! Is this the quickest way to create a png from a Flex component?  I am trying to create a button such as &#8220;view PNG&#8221; and have my flex chart opened in a web-browser window as a png.</p>
<p>any ideas</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2007/12/07/using-the-imagesnapshot-class-to-capture-images-as-jpegs-or-pngs-in-flex-3/#comment-7666</link>
		<author>peterd</author>
		<pubDate>Mon, 17 Mar 2008 20:49:01 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/12/07/using-the-imagesnapshot-class-to-capture-images-as-jpegs-or-pngs-in-flex-3/#comment-7666</guid>
		<description>Tony,

I'll try and come up with an example tonight, but you should be able to use a combination of the Base64Decoder class's &lt;code&gt;decode()&lt;/code&gt; and &lt;code&gt;toByteArray()&lt;/code&gt; methods to convert a base64 string into a byte array, and then you can display the byte array in a Flex 3 Image control using the &lt;code&gt;load()&lt;/code&gt; method.

Peter

UPDATE: For more information, see &lt;a href="http://blog.flexexamples.com/2008/03/17/displaying-an-image-saved-as-a-base64-encoded-string-in-flex-3/" rel="nofollow"&gt;"Displaying an image saved as a Base64 encoded string in Flex 3"&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>Tony,</p>
<p>I&#8217;ll try and come up with an example tonight, but you should be able to use a combination of the Base64Decoder class&#8217;s <code>decode()</code> and <code>toByteArray()</code> methods to convert a base64 string into a byte array, and then you can display the byte array in a Flex 3 Image control using the <code>load()</code> method.</p>
<p>Peter</p>
<p>UPDATE: For more information, see <a href="http://blog.flexexamples.com/2008/03/17/displaying-an-image-saved-as-a-base64-encoded-string-in-flex-3/" rel="nofollow">&#8220;Displaying an image saved as a Base64 encoded string in Flex 3&#8243;</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tony</title>
		<link>http://blog.flexexamples.com/2007/12/07/using-the-imagesnapshot-class-to-capture-images-as-jpegs-or-pngs-in-flex-3/#comment-7659</link>
		<author>Tony</author>
		<pubDate>Mon, 17 Mar 2008 14:36:13 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/12/07/using-the-imagesnapshot-class-to-capture-images-as-jpegs-or-pngs-in-flex-3/#comment-7659</guid>
		<description>Hi Peter, 

Thats a great example , but can we create the vice-verca of that means creating image from this binary data.


Thanks,
Tony</description>
		<content:encoded><![CDATA[<p>Hi Peter, </p>
<p>Thats a great example , but can we create the vice-verca of that means creating image from this binary data.</p>
<p>Thanks,<br />
Tony</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jon</title>
		<link>http://blog.flexexamples.com/2007/12/07/using-the-imagesnapshot-class-to-capture-images-as-jpegs-or-pngs-in-flex-3/#comment-5016</link>
		<author>jon</author>
		<pubDate>Thu, 13 Dec 2007 08:57:56 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/12/07/using-the-imagesnapshot-class-to-capture-images-as-jpegs-or-pngs-in-flex-3/#comment-5016</guid>
		<description>great site


visit this website also: http://www.flexexamples.blogspot.com

thanks
jon

http://www.flexexamples.blogspot.com</description>
		<content:encoded><![CDATA[<p>great site</p>
<p>visit this website also: <a href="http://www.flexexamples.blogspot.com" rel="nofollow">http://www.flexexamples.blogspot.com</a></p>
<p>thanks<br />
jon</p>
<p><a href="http://www.flexexamples.blogspot.com" rel="nofollow">http://www.flexexamples.blogspot.com</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
