<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: ImageSnapshot class in Flex 3 SDK</title>
	<atom:link href="http://dougmccune.com/blog/2007/06/11/imagesnapshot-class-in-flex-3-sdk/feed/" rel="self" type="application/rss+xml" />
	<link>http://dougmccune.com/blog/2007/06/11/imagesnapshot-class-in-flex-3-sdk/</link>
	<description>A blog about Adobe Flex</description>
	<lastBuildDate>Sun, 14 Mar 2010 01:29:08 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Alexandr</title>
		<link>http://dougmccune.com/blog/2007/06/11/imagesnapshot-class-in-flex-3-sdk/comment-page-1/#comment-209127</link>
		<dc:creator>Alexandr</dc:creator>
		<pubDate>Fri, 19 Feb 2010 02:50:43 +0000</pubDate>
		<guid isPermaLink="false">http://dougmccune.com/blog/2007/06/11/imagesnapshot-class-in-flex-3-sdk/#comment-209127</guid>
		<description>hi guys! Is there a way to take a snapshot of entire screen(not only area in flash)?</description>
		<content:encoded><![CDATA[<p>hi guys! Is there a way to take a snapshot of entire screen(not only area in flash)?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob</title>
		<link>http://dougmccune.com/blog/2007/06/11/imagesnapshot-class-in-flex-3-sdk/comment-page-1/#comment-208255</link>
		<dc:creator>Rob</dc:creator>
		<pubDate>Wed, 05 Aug 2009 23:10:37 +0000</pubDate>
		<guid isPermaLink="false">http://dougmccune.com/blog/2007/06/11/imagesnapshot-class-in-flex-3-sdk/#comment-208255</guid>
		<description>Excellent article!

I am having the same trouble Deepak does.  I am trying to get a shot of a data grid, but I only get the visible portions.  I need an image of the whole grid, even the off screen portions.  I&#039;ve tried removing it from the layout, and position it inside an non-visible gigantic container (say 10,000 pixesl square) hoping that it would be laid out fully inside there, and I could then take a snap.  However it just becomes oddly sized.  Any thoughts?</description>
		<content:encoded><![CDATA[<p>Excellent article!</p>
<p>I am having the same trouble Deepak does.  I am trying to get a shot of a data grid, but I only get the visible portions.  I need an image of the whole grid, even the off screen portions.  I&#8217;ve tried removing it from the layout, and position it inside an non-visible gigantic container (say 10,000 pixesl square) hoping that it would be laid out fully inside there, and I could then take a snap.  However it just becomes oddly sized.  Any thoughts?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tucker Watson</title>
		<link>http://dougmccune.com/blog/2007/06/11/imagesnapshot-class-in-flex-3-sdk/comment-page-1/#comment-207522</link>
		<dc:creator>Tucker Watson</dc:creator>
		<pubDate>Sun, 15 Feb 2009 17:35:03 +0000</pubDate>
		<guid isPermaLink="false">http://dougmccune.com/blog/2007/06/11/imagesnapshot-class-in-flex-3-sdk/#comment-207522</guid>
		<description>Sorry - the comment system stripped the PHP code:

   header(&#039;Content-Type: image/png&#039;);
   header(&quot;Content-Disposition: attachment; filename=title.png&quot;);
   echo base64_decode($_POST[&quot;image&quot;]);</description>
		<content:encoded><![CDATA[<p>Sorry &#8211; the comment system stripped the PHP code:</p>
<p>   header(&#8216;Content-Type: image/png&#8217;);<br />
   header(&#8220;Content-Disposition: attachment; filename=title.png&#8221;);<br />
   echo base64_decode($_POST["image"]);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tucker Watson</title>
		<link>http://dougmccune.com/blog/2007/06/11/imagesnapshot-class-in-flex-3-sdk/comment-page-1/#comment-207521</link>
		<dc:creator>Tucker Watson</dc:creator>
		<pubDate>Sun, 15 Feb 2009 17:34:17 +0000</pubDate>
		<guid isPermaLink="false">http://dougmccune.com/blog/2007/06/11/imagesnapshot-class-in-flex-3-sdk/#comment-207521</guid>
		<description>Thanks for the article Doug.  I was able to use it to save a PNG file on my local computer via a PHP script.  I sent the Base64 string using URLRequest:

var urlRequest:URLRequest = new URLRequest(&quot;server/image.php&quot;);				
urlRequest.method = URLRequestMethod.POST;
var vars:URLVariables = new URLVariables(); 
vars.image = b64String;
urlRequest.data = vars;
navigateToURL( urlRequest, &quot;_blank&quot; );

Image.php:
</description>
		<content:encoded><![CDATA[<p>Thanks for the article Doug.  I was able to use it to save a PNG file on my local computer via a PHP script.  I sent the Base64 string using URLRequest:</p>
<p>var urlRequest:URLRequest = new URLRequest(&#8220;server/image.php&#8221;);<br />
urlRequest.method = URLRequestMethod.POST;<br />
var vars:URLVariables = new URLVariables();<br />
vars.image = b64String;<br />
urlRequest.data = vars;<br />
navigateToURL( urlRequest, &#8220;_blank&#8221; );</p>
<p>Image.php:</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lycan</title>
		<link>http://dougmccune.com/blog/2007/06/11/imagesnapshot-class-in-flex-3-sdk/comment-page-1/#comment-204907</link>
		<dc:creator>Lycan</dc:creator>
		<pubDate>Wed, 22 Oct 2008 12:26:57 +0000</pubDate>
		<guid isPermaLink="false">http://dougmccune.com/blog/2007/06/11/imagesnapshot-class-in-flex-3-sdk/#comment-204907</guid>
		<description>Hi to all,

I&#039;m having a problem to encode an image. My image have 2 type an medium size image and original size image. I dont have any idea how to encode the original size while I&#039;m am using the medium size for viewing and editing an image.

Please help me..

Thank you very much..</description>
		<content:encoded><![CDATA[<p>Hi to all,</p>
<p>I&#8217;m having a problem to encode an image. My image have 2 type an medium size image and original size image. I dont have any idea how to encode the original size while I&#8217;m am using the medium size for viewing and editing an image.</p>
<p>Please help me..</p>
<p>Thank you very much..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erich Cervantez</title>
		<link>http://dougmccune.com/blog/2007/06/11/imagesnapshot-class-in-flex-3-sdk/comment-page-1/#comment-136127</link>
		<dc:creator>Erich Cervantez</dc:creator>
		<pubDate>Sun, 03 Aug 2008 16:07:29 +0000</pubDate>
		<guid isPermaLink="false">http://dougmccune.com/blog/2007/06/11/imagesnapshot-class-in-flex-3-sdk/#comment-136127</guid>
		<description>Hi Doug, thanks for the lesson on ImageSnapshot.  I&#039;m using this to encode flex components, passing the resulting String in XML to a PDF remote object that generates a PDF using LiveCycle&#039;s flex.acrobat classes...pretty nifty!</description>
		<content:encoded><![CDATA[<p>Hi Doug, thanks for the lesson on ImageSnapshot.  I&#8217;m using this to encode flex components, passing the resulting String in XML to a PDF remote object that generates a PDF using LiveCycle&#8217;s flex.acrobat classes&#8230;pretty nifty!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Deepak</title>
		<link>http://dougmccune.com/blog/2007/06/11/imagesnapshot-class-in-flex-3-sdk/comment-page-1/#comment-107961</link>
		<dc:creator>Deepak</dc:creator>
		<pubDate>Fri, 20 Jun 2008 12:04:03 +0000</pubDate>
		<guid isPermaLink="false">http://dougmccune.com/blog/2007/06/11/imagesnapshot-class-in-flex-3-sdk/#comment-107961</guid>
		<description>hi all,

If i snapshot the datagrid in the UI i am not able to get the complete datagrid values bec of this technique.. Can any one plz help me over here.</description>
		<content:encoded><![CDATA[<p>hi all,</p>
<p>If i snapshot the datagrid in the UI i am not able to get the complete datagrid values bec of this technique.. Can any one plz help me over here.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: K Wright</title>
		<link>http://dougmccune.com/blog/2007/06/11/imagesnapshot-class-in-flex-3-sdk/comment-page-1/#comment-35265</link>
		<dc:creator>K Wright</dc:creator>
		<pubDate>Wed, 12 Dec 2007 15:30:56 +0000</pubDate>
		<guid isPermaLink="false">http://dougmccune.com/blog/2007/06/11/imagesnapshot-class-in-flex-3-sdk/#comment-35265</guid>
		<description>Is it possible to use this method to capture a still image of a live RTMP stream?  I&#039;ve tried with the BitmapData.draw(), but I get a 2123 Error (Security Error).

I thought this might be a better way to do it, but

imageString = ImageSnapshot.encodeImageAsBase64(ImageSnapshot.captureImage(vidHolder, 0, jpegEnc, true));

(where vidHolder is a UIComponent holding a video object that is playing the stream) throws the same error (2123).

Am I using this wrong, or is it not possible...?</description>
		<content:encoded><![CDATA[<p>Is it possible to use this method to capture a still image of a live RTMP stream?  I&#8217;ve tried with the BitmapData.draw(), but I get a 2123 Error (Security Error).</p>
<p>I thought this might be a better way to do it, but</p>
<p>imageString = ImageSnapshot.encodeImageAsBase64(ImageSnapshot.captureImage(vidHolder, 0, jpegEnc, true));</p>
<p>(where vidHolder is a UIComponent holding a video object that is playing the stream) throws the same error (2123).</p>
<p>Am I using this wrong, or is it not possible&#8230;?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan Schultz</title>
		<link>http://dougmccune.com/blog/2007/06/11/imagesnapshot-class-in-flex-3-sdk/comment-page-1/#comment-27927</link>
		<dc:creator>Dan Schultz</dc:creator>
		<pubDate>Sun, 18 Nov 2007 02:47:57 +0000</pubDate>
		<guid isPermaLink="false">http://dougmccune.com/blog/2007/06/11/imagesnapshot-class-in-flex-3-sdk/#comment-27927</guid>
		<description>@Bernard,

try:

var bitmap:BitmapData = ImageSnapshot.captureBitmapData( .... );

var img:Image = new Image();
img.width = bitmap.width;
img.height = bitmap.height;
img.source = new BitmapAsset(bitmap);</description>
		<content:encoded><![CDATA[<p>@Bernard,</p>
<p>try:</p>
<p>var bitmap:BitmapData = ImageSnapshot.captureBitmapData( &#8230;. );</p>
<p>var img:Image = new Image();<br />
img.width = bitmap.width;<br />
img.height = bitmap.height;<br />
img.source = new BitmapAsset(bitmap);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bernard Farrell</title>
		<link>http://dougmccune.com/blog/2007/06/11/imagesnapshot-class-in-flex-3-sdk/comment-page-1/#comment-27485</link>
		<dc:creator>Bernard Farrell</dc:creator>
		<pubDate>Fri, 16 Nov 2007 20:34:46 +0000</pubDate>
		<guid isPermaLink="false">http://dougmccune.com/blog/2007/06/11/imagesnapshot-class-in-flex-3-sdk/#comment-27485</guid>
		<description>Doug

I see the benefit of the ImageSnapshot for saving an image to file, or sending it over the wire.

Is there any way to take this image and actually place it on a screen? Ideally as an Image instance. I can&#039;t find any way to trivially convert an ImageSnapshot into an Image instance.</description>
		<content:encoded><![CDATA[<p>Doug</p>
<p>I see the benefit of the ImageSnapshot for saving an image to file, or sending it over the wire.</p>
<p>Is there any way to take this image and actually place it on a screen? Ideally as an Image instance. I can&#8217;t find any way to trivially convert an ImageSnapshot into an Image instance.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
