<?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/"
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
	>
<channel>
	<title>Comments on: Bitmap and Sprite Conversion in ActionScript 3</title>
	<atom:link href="http://natejc.com/blog/2007/06/bitmap-and-sprite-conversion-in-actionscript-3/feed/" rel="self" type="application/rss+xml" />
	<link>http://natejc.com/blog/2007/06/bitmap-and-sprite-conversion-in-actionscript-3/</link>
	<description>Flash &#38; AS3 info, source, &#38; experiments</description>
	<lastBuildDate>Fri, 13 Jan 2012 17:18:54 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Nate Chatellier</title>
		<link>http://natejc.com/blog/2007/06/bitmap-and-sprite-conversion-in-actionscript-3/comment-page-1/#comment-97077</link>
		<dc:creator>Nate Chatellier</dc:creator>
		<pubDate>Mon, 16 May 2011 17:54:53 +0000</pubDate>
		<guid isPermaLink="false">http://natejc.com/blog/?p=60#comment-97077</guid>
		<description>@Animedude: There are programs that do that. If you just want the source you can use a decompiler, such as: http://www.sothink.com/product/flashdecompiler/index2.htm

If you have the source and just want png&#039;s cut from it, you can use one of many tools such as this one: https://github.com/pixelrevision/texture_atlas_generator</description>
		<content:encoded><![CDATA[<p>@Animedude: There are programs that do that. If you just want the source you can use a decompiler, such as: <a href="http://www.sothink.com/product/flashdecompiler/index2.htm" rel="nofollow">http://www.sothink.com/product/flashdecompiler/index2.htm</a></p>
<p>If you have the source and just want png&#8217;s cut from it, you can use one of many tools such as this one: <a href="https://github.com/pixelrevision/texture_atlas_generator" rel="nofollow">https://github.com/pixelrevision/texture_atlas_generator</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Animedude5555</title>
		<link>http://natejc.com/blog/2007/06/bitmap-and-sprite-conversion-in-actionscript-3/comment-page-1/#comment-97074</link>
		<dc:creator>Animedude5555</dc:creator>
		<pubDate>Mon, 16 May 2011 04:51:49 +0000</pubDate>
		<guid isPermaLink="false">http://natejc.com/blog/?p=60#comment-97074</guid>
		<description>How about an SWF2PNG.EXE (forget using AS or flash or other crap for conversion), that would be a dedicated program to extract FRAME, SPRITE, and SHAPE, type vector graphics from SWF files and then export them as PNG image files (or at least 32bit BMP image files), complete with transparency (or alpha channel). 

Anyone here want to write such a program? I&#039;m personally interested in such, and none currently exists, so I&#039;m requesting someone here with programming knowledge to write such a program for me. Thanks in advance.</description>
		<content:encoded><![CDATA[<p>How about an SWF2PNG.EXE (forget using AS or flash or other crap for conversion), that would be a dedicated program to extract FRAME, SPRITE, and SHAPE, type vector graphics from SWF files and then export them as PNG image files (or at least 32bit BMP image files), complete with transparency (or alpha channel). </p>
<p>Anyone here want to write such a program? I&#8217;m personally interested in such, and none currently exists, so I&#8217;m requesting someone here with programming knowledge to write such a program for me. Thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nate Chatellier</title>
		<link>http://natejc.com/blog/2007/06/bitmap-and-sprite-conversion-in-actionscript-3/comment-page-1/#comment-96936</link>
		<dc:creator>Nate Chatellier</dc:creator>
		<pubDate>Tue, 26 Apr 2011 21:45:25 +0000</pubDate>
		<guid isPermaLink="false">http://natejc.com/blog/?p=60#comment-96936</guid>
		<description>I have never had to deal with a differing registration point on any of my projects. But I suppose that would cause an issue. And the solution would be different depending on which direction you were applying the conversion. 

Is your issue for going from a Sprite to a Bitmap? Then you could just use this code instead:
&lt;code&gt;var r:Rectangle = sprite.getBounds(sprite);
var bitmapData:BitmapData = new BitmapData(sprite.width, sprite.height, true, 0x00FFFFFF);
bitmapData.draw(sprite, new Matrix(1,0,0,1,-r.left,-r.top));&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>I have never had to deal with a differing registration point on any of my projects. But I suppose that would cause an issue. And the solution would be different depending on which direction you were applying the conversion. </p>
<p>Is your issue for going from a Sprite to a Bitmap? Then you could just use this code instead:<br />
<code>var r:Rectangle = sprite.getBounds(sprite);<br />
var bitmapData:BitmapData = new BitmapData(sprite.width, sprite.height, true, 0x00FFFFFF);<br />
bitmapData.draw(sprite, new Matrix(1,0,0,1,-r.left,-r.top));</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bobmoff</title>
		<link>http://natejc.com/blog/2007/06/bitmap-and-sprite-conversion-in-actionscript-3/comment-page-1/#comment-96934</link>
		<dc:creator>Bobmoff</dc:creator>
		<pubDate>Tue, 26 Apr 2011 21:03:38 +0000</pubDate>
		<guid isPermaLink="false">http://natejc.com/blog/?p=60#comment-96934</guid>
		<description>Isn&#039;t there problem using this if the registration point is centered ?</description>
		<content:encoded><![CDATA[<p>Isn&#8217;t there problem using this if the registration point is centered ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: paul</title>
		<link>http://natejc.com/blog/2007/06/bitmap-and-sprite-conversion-in-actionscript-3/comment-page-1/#comment-89838</link>
		<dc:creator>paul</dc:creator>
		<pubDate>Tue, 10 Mar 2009 12:08:38 +0000</pubDate>
		<guid isPermaLink="false">http://natejc.com/blog/?p=60#comment-89838</guid>
		<description>Cheers for that!</description>
		<content:encoded><![CDATA[<p>Cheers for that!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Niklas Bivald</title>
		<link>http://natejc.com/blog/2007/06/bitmap-and-sprite-conversion-in-actionscript-3/comment-page-1/#comment-20633</link>
		<dc:creator>Niklas Bivald</dc:creator>
		<pubDate>Wed, 19 Mar 2008 15:40:41 +0000</pubDate>
		<guid isPermaLink="false">http://natejc.com/blog/?p=60#comment-20633</guid>
		<description>Great Class, simple and to the point. Thank you!</description>
		<content:encoded><![CDATA[<p>Great Class, simple and to the point. Thank you!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

