<?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:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Taking color average from image</title>
	<atom:link href="http://theolagendijk.wordpress.com/2006/07/01/taking-color-average-from-image/feed/" rel="self" type="application/rss+xml" />
	<link>http://theolagendijk.wordpress.com/2006/07/01/taking-color-average-from-image/</link>
	<description>Why didn't I think of that</description>
	<lastBuildDate>Wed, 21 Oct 2009 06:03:51 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Zip</title>
		<link>http://theolagendijk.wordpress.com/2006/07/01/taking-color-average-from-image/#comment-7238</link>
		<dc:creator>Zip</dc:creator>
		<pubDate>Wed, 19 Dec 2007 15:13:34 +0000</pubDate>
		<guid isPermaLink="false">https://theolagendijk.wordpress.com/2006/07/01/taking-color-average-from-image/#comment-7238</guid>
		<description>Thanks!  Very cool.  Big help.</description>
		<content:encoded><![CDATA[<p>Thanks!  Very cool.  Big help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: colortoy one : Inventoids</title>
		<link>http://theolagendijk.wordpress.com/2006/07/01/taking-color-average-from-image/#comment-5775</link>
		<dc:creator>colortoy one : Inventoids</dc:creator>
		<pubDate>Fri, 07 Sep 2007 21:38:36 +0000</pubDate>
		<guid isPermaLink="false">https://theolagendijk.wordpress.com/2006/07/01/taking-color-average-from-image/#comment-5775</guid>
		<description>[...] Theo - nice flash single image color averaging [...]</description>
		<content:encoded><![CDATA[<p>[...] Theo &#8211; nice flash single image color averaging [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: theolagendijk</title>
		<link>http://theolagendijk.wordpress.com/2006/07/01/taking-color-average-from-image/#comment-4287</link>
		<dc:creator>theolagendijk</dc:creator>
		<pubDate>Fri, 22 Jun 2007 17:44:19 +0000</pubDate>
		<guid isPermaLink="false">https://theolagendijk.wordpress.com/2006/07/01/taking-color-average-from-image/#comment-4287</guid>
		<description>@gogs:
Yes I know how to do that!
My tutorial was written when we all used ActionScript 2.0 in Flash 8. I hope you got Flash 9 with ActionScript 3.0.

I&#039;ve seen an awesome tutorial about the BitmapData class in ActionScript 3.0;
&lt;a href=&quot;http://theflashblog.com/?p=268&quot; rel=&quot;nofollow&quot;&gt;Re-Painting Pixels with Actionscript 3&lt;/a&gt;

It made me interested to see what&#039;s in the BitmapData class in ActionScript 3.0. There&#039;s a function that returns an ARGB color value that contains alpha channel data and RGB data. It was new for me I do not remember it being available in ActionScript 2.0 but I might be wrong.

The tutorial is not yet using the alpha information but you can. See the &lt;a href=&quot;http://livedocs.adobe.com/flex/2/langref/flash/display/BitmapData.html#getPixel32()&quot; rel=&quot;nofollow&quot;&gt;BitmapData.getPixel32()&lt;/a&gt; function.
Good Luck with it!</description>
		<content:encoded><![CDATA[<p>@gogs:<br />
Yes I know how to do that!<br />
My tutorial was written when we all used ActionScript 2.0 in Flash 8. I hope you got Flash 9 with ActionScript 3.0.</p>
<p>I&#8217;ve seen an awesome tutorial about the BitmapData class in ActionScript 3.0;<br />
<a href="http://theflashblog.com/?p=268" rel="nofollow">Re-Painting Pixels with Actionscript 3</a></p>
<p>It made me interested to see what&#8217;s in the BitmapData class in ActionScript 3.0. There&#8217;s a function that returns an ARGB color value that contains alpha channel data and RGB data. It was new for me I do not remember it being available in ActionScript 2.0 but I might be wrong.</p>
<p>The tutorial is not yet using the alpha information but you can. See the <a href="http://livedocs.adobe.com/flex/2/langref/flash/display/BitmapData.html#getPixel32()" rel="nofollow">BitmapData.getPixel32()</a> function.<br />
Good Luck with it!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gogs</title>
		<link>http://theolagendijk.wordpress.com/2006/07/01/taking-color-average-from-image/#comment-4285</link>
		<dc:creator>gogs</dc:creator>
		<pubDate>Fri, 22 Jun 2007 17:30:31 +0000</pubDate>
		<guid isPermaLink="false">https://theolagendijk.wordpress.com/2006/07/01/taking-color-average-from-image/#comment-4285</guid>
		<description>I wanna do the same thing but instead of getting average color of an image, i want the program to get me the average color of the whole movieclip with alpha information...

any clues??</description>
		<content:encoded><![CDATA[<p>I wanna do the same thing but instead of getting average color of an image, i want the program to get me the average color of the whole movieclip with alpha information&#8230;</p>
<p>any clues??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: theolagendijk</title>
		<link>http://theolagendijk.wordpress.com/2006/07/01/taking-color-average-from-image/#comment-3268</link>
		<dc:creator>theolagendijk</dc:creator>
		<pubDate>Mon, 21 May 2007 07:16:48 +0000</pubDate>
		<guid isPermaLink="false">https://theolagendijk.wordpress.com/2006/07/01/taking-color-average-from-image/#comment-3268</guid>
		<description>Thanks Pablo! That must be it indeed!</description>
		<content:encoded><![CDATA[<p>Thanks Pablo! That must be it indeed!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pablo</title>
		<link>http://theolagendijk.wordpress.com/2006/07/01/taking-color-average-from-image/#comment-3256</link>
		<dc:creator>Pablo</dc:creator>
		<pubDate>Sun, 20 May 2007 23:46:05 +0000</pubDate>
		<guid isPermaLink="false">https://theolagendijk.wordpress.com/2006/07/01/taking-color-average-from-image/#comment-3256</guid>
		<description>Hi!
That error is caused because of the character &quot;x&quot; in the Hex numbers.
Just re-write that hex numbers by  yourself and everything will work fine.</description>
		<content:encoded><![CDATA[<p>Hi!<br />
That error is caused because of the character &#8220;x&#8221; in the Hex numbers.<br />
Just re-write that hex numbers by  yourself and everything will work fine.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: theolagendijk</title>
		<link>http://theolagendijk.wordpress.com/2006/07/01/taking-color-average-from-image/#comment-2797</link>
		<dc:creator>theolagendijk</dc:creator>
		<pubDate>Wed, 02 May 2007 07:38:08 +0000</pubDate>
		<guid isPermaLink="false">https://theolagendijk.wordpress.com/2006/07/01/taking-color-average-from-image/#comment-2797</guid>
		<description>Yes it should work in Flash 8 (ActionScript 2) because that&#039;s the environment in which I made it. The errors are all related to &lt;i&gt;syntax&lt;/i&gt;. So since the lines that are printed as errors are correct, I would make sure you have&#039;nt missed an &#039;&lt;b&gt;)&lt;/b&gt;&#039; or an &#039;&lt;b&gt;;&lt;/b&gt;&#039; somewhere in the lines directly above 
&lt;i&gt;sumColorG += (col &amp; 0×00FF00) &gt;&gt;&gt; 8;&lt;/i&gt;

I hope that helps. I&#039;m totally sure the code works, I have it running right now in a website of my own.</description>
		<content:encoded><![CDATA[<p>Yes it should work in Flash 8 (ActionScript 2) because that&#8217;s the environment in which I made it. The errors are all related to <i>syntax</i>. So since the lines that are printed as errors are correct, I would make sure you have&#8217;nt missed an &#8216;<b>)</b>&#8216; or an &#8216;<b>;</b>&#8216; somewhere in the lines directly above<br />
<i>sumColorG += (col &amp; 0×00FF00) &gt;&gt;&gt; 8;</i></p>
<p>I hope that helps. I&#8217;m totally sure the code works, I have it running right now in a website of my own.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ohio</title>
		<link>http://theolagendijk.wordpress.com/2006/07/01/taking-color-average-from-image/#comment-2789</link>
		<dc:creator>Ohio</dc:creator>
		<pubDate>Wed, 02 May 2007 02:32:07 +0000</pubDate>
		<guid isPermaLink="false">https://theolagendijk.wordpress.com/2006/07/01/taking-color-average-from-image/#comment-2789</guid>
		<description>First of all THANK YOU for posting this code. It&#039;s exactly what I am looking for. I am having trouble replicating it. I set up my flash document but I am getting the following error. Does it not work in Flash 8? 
Any help would be a life saver...  cheers


**Error** Scene=Scene 1, layer=Layer 3, frame=1:Line 26: &#039;)&#039; expected
     sumColorG += (col &amp; 0×00FF00) &gt;&gt;&gt; 8;

**Error** Scene=Scene 1, layer=Layer 3, frame=1:Line 27: &#039;)&#039; expected
     sumColorB += (col &amp; 0×0000FF);

**Error** Scene=Scene 1, layer=Layer 3, frame=1:Line 30: Unexpected &#039;}&#039; encountered
     }

Total ActionScript Errors: 3 	 Reported Errors: 3</description>
		<content:encoded><![CDATA[<p>First of all THANK YOU for posting this code. It&#8217;s exactly what I am looking for. I am having trouble replicating it. I set up my flash document but I am getting the following error. Does it not work in Flash 8?<br />
Any help would be a life saver&#8230;  cheers</p>
<p>**Error** Scene=Scene 1, layer=Layer 3, frame=1:Line 26: &#8216;)&#8217; expected<br />
     sumColorG += (col &amp; 0×00FF00) &gt;&gt;&gt; 8;</p>
<p>**Error** Scene=Scene 1, layer=Layer 3, frame=1:Line 27: &#8216;)&#8217; expected<br />
     sumColorB += (col &amp; 0×0000FF);</p>
<p>**Error** Scene=Scene 1, layer=Layer 3, frame=1:Line 30: Unexpected &#8216;}&#8217; encountered<br />
     }</p>
<p>Total ActionScript Errors: 3 	 Reported Errors: 3</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: theolagendijk</title>
		<link>http://theolagendijk.wordpress.com/2006/07/01/taking-color-average-from-image/#comment-176</link>
		<dc:creator>theolagendijk</dc:creator>
		<pubDate>Thu, 21 Sep 2006 15:10:05 +0000</pubDate>
		<guid isPermaLink="false">https://theolagendijk.wordpress.com/2006/07/01/taking-color-average-from-image/#comment-176</guid>
		<description>No problem. You&#039;re welcome!</description>
		<content:encoded><![CDATA[<p>No problem. You&#8217;re welcome!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GummyBear</title>
		<link>http://theolagendijk.wordpress.com/2006/07/01/taking-color-average-from-image/#comment-175</link>
		<dc:creator>GummyBear</dc:creator>
		<pubDate>Thu, 21 Sep 2006 14:40:25 +0000</pubDate>
		<guid isPermaLink="false">https://theolagendijk.wordpress.com/2006/07/01/taking-color-average-from-image/#comment-175</guid>
		<description>Theo, you&#039;re a star ... this is just what I was looking for and it works a treat!  Dropping the sampling grid from every pixel to every 8th pixel speeds things up for larger images and is still accurate enough for what I want.  Cheers.</description>
		<content:encoded><![CDATA[<p>Theo, you&#8217;re a star &#8230; this is just what I was looking for and it works a treat!  Dropping the sampling grid from every pixel to every 8th pixel speeds things up for larger images and is still accurate enough for what I want.  Cheers.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
