<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ink Grass &#187; Tutorials</title>
	<atom:link href="http://inkgrass.lazymoon.org/category/tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>http://inkgrass.lazymoon.org</link>
	<description>A blog about web design, programming, graphics and everything inbetween.</description>
	<lastBuildDate>Mon, 18 Jan 2010 14:13:46 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Flash CS4 Export As 24bit+Alpha PNG Solution</title>
		<link>http://inkgrass.lazymoon.org/2009/03/20/flash-cs4-export-as-24bit-alpha-png-solution/</link>
		<comments>http://inkgrass.lazymoon.org/2009/03/20/flash-cs4-export-as-24bit-alpha-png-solution/#comments</comments>
		<pubDate>Fri, 20 Mar 2009 06:26:36 +0000</pubDate>
		<dc:creator>Lachlan</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://inkgrass.lazymoon.org/?p=55</guid>
		<description><![CDATA[Today I was going through some design files that were sent to me to be added to a website I&#8217;m helping to develop. The designs were drawn in Flash CS4. I needed to work with these files in Photoshop, so I went to export the files as a 24-bit PNG with Alpha and blending, except [...]]]></description>
			<content:encoded><![CDATA[<p>Today I was going through some design files that were sent to me to be added to a website I&#8217;m helping to develop. The designs were drawn in Flash CS4. I needed to work with these files in Photoshop, so I went to export the files as a 24-bit PNG with Alpha and blending, except Flash decided it wasn&#8217;t going to play nice.<br />
<img class="aligncenter" src="http://lazymoon.org/upload/55-1.png" alt=""/><br />
The picture on the left is how the image appears in Flash, and on the right is the exported PNG. The problem is that Flash wasn&#8217;t correctly handling the alpha during export. So instead of the smooth edges in the left image, we have the ugly aliased edges seen on the right.</p>
<p>What I needed was the alpha information, or at the very least, an alpha mask. Since Flash wasn&#8217;t behaving, here&#8217;s how I made one:</p>
<ol>
<li>Export the image twice; once with a black background, and once with a white background. Instead of exporting as &#8220;24 bit with alpha channel&#8221;, simply export it as &#8220;24 bit&#8221;. Other than the background, the images should be identical.</li>
<li>Open both the images in Photoshop, and put them in the same document.</li>
<li>Select the top-most layer, and set its blending mode to &#8220;Difference&#8221;.</li>
</ol>
<p><img class="aligncenter" src="http://lazymoon.org/upload/55-5.png" alt="" /></p>
<ol start="4">
<li>Merge the layers (<em>Layer </em>&gt; <em>Flatten Image</em>).</li>
<li>Invert the document (<em>Image </em>&gt; <em>Adjustments </em>&gt; <em>Invert</em>).</li>
</ol>
<p>What you should now have is a greyscale image. The background should be black, and all the features white.<br />
<img class="aligncenter" src="http://lazymoon.org/upload/55-2.png" alt="" /></p>
<ol start="6">
<li>Select the entire document, and copy it.</li>
<li>Open one of the images you exported, and create a new layer mask (<em>Layer </em>&gt; <em>Layer Mask</em> &gt; <em>Reveal All</em>).</li>
<li>Paste the greyscale image into the mask.</li>
</ol>
<p><img class="aligncenter" src="http://lazymoon.org/upload/55-4.png" alt="" /><br />
<img class="aligncenter" src="http://lazymoon.org/upload/55-3.png" alt="" /><br />
You should now have an image with perfectly smoothed edges. If you notice a slight white or black outline surrounding the edges, you can use &#8220;Defringe&#8221; or &#8220;Remove White\Black Matte&#8221; from the Image menu.</p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://inkgrass.lazymoon.org/2009/03/20/flash-cs4-export-as-24bit-alpha-png-solution/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
