<?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"
	>
<channel>
	<title>Comments on: Get first non transparent pixel in a bitmap, 3 approaches and benchmarks</title>
	<atom:link href="http://www.sakri.net/blog/2009/02/10/get-first-non-transparent-pixel-in-a-bitmap-3-approaches-and-benchmarks/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sakri.net/blog/2009/02/10/get-first-non-transparent-pixel-in-a-bitmap-3-approaches-and-benchmarks/</link>
	<description>I Flash und I Flex Jaaaa</description>
	<pubDate>Thu, 11 Mar 2010 18:59:59 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: sakri</title>
		<link>http://www.sakri.net/blog/2009/02/10/get-first-non-transparent-pixel-in-a-bitmap-3-approaches-and-benchmarks/#comment-812</link>
		<dc:creator>sakri</dc:creator>
		<pubDate>Wed, 18 Feb 2009 09:29:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.sakri.net/blog/?p=170#comment-812</guid>
		<description>You probably explained it right, I just didn't understand :)

I'll give that a go... sounds good! Thanks Mario!</description>
		<content:encoded><![CDATA[<p>You probably explained it right, I just didn&#8217;t understand <img src='http://www.sakri.net/blog/wp-includes/images/smilies/smile_sakri_blue.gif' alt=':)' class='wp-smiley' /> </p>
<p>I&#8217;ll give that a go&#8230; sounds good! Thanks Mario!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mario Klingemann</title>
		<link>http://www.sakri.net/blog/2009/02/10/get-first-non-transparent-pixel-in-a-bitmap-3-approaches-and-benchmarks/#comment-811</link>
		<dc:creator>Mario Klingemann</dc:creator>
		<pubDate>Tue, 17 Feb 2009 15:00:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.sakri.net/blog/?p=170#comment-811</guid>
		<description>Hmm - sounds like you misunderstood something that I said back then. The way I find the first non-transparent pixel is by using to consecutive applications of getColorBoundsRect():

- step one: use getColorBoundsRect(0xff000000,0,false) on the bitmap you want to find the pixel 
- step two: create a transparent 1 pixel high bitmap with the width of the colorbounds rect that you've found
- step three: use copyPixels to copy the first row of the found rect into the the 1 pixel bitmap
- step four: use another getColorBoundsRect(0xff000000,0,false) on the 1 pixel bitmap
-&#62; add the x property of that rect to the x property of the first color rect's topLeft point and you have the first non-transparent point

I guess I should add a post to my blog with an example....</description>
		<content:encoded><![CDATA[<p>Hmm - sounds like you misunderstood something that I said back then. The way I find the first non-transparent pixel is by using to consecutive applications of getColorBoundsRect():</p>
<p>- step one: use getColorBoundsRect(0xff000000,0,false) on the bitmap you want to find the pixel<br />
- step two: create a transparent 1 pixel high bitmap with the width of the colorbounds rect that you&#8217;ve found<br />
- step three: use copyPixels to copy the first row of the found rect into the the 1 pixel bitmap<br />
- step four: use another getColorBoundsRect(0xff000000,0,false) on the 1 pixel bitmap<br />
-&gt; add the x property of that rect to the x property of the first color rect&#8217;s topLeft point and you have the first non-transparent point</p>
<p>I guess I should add a post to my blog with an example&#8230;.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
