<?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: Playing with getPixel</title>
	<atom:link href="http://www.emanueleferonato.com/2008/06/28/playing-with-getpixel/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.emanueleferonato.com/2008/06/28/playing-with-getpixel/</link>
	<description>italian geek and PROgrammer</description>
	<lastBuildDate>Fri, 10 Feb 2012 12:12:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: Christopher Stevens</title>
		<link>http://www.emanueleferonato.com/2008/06/28/playing-with-getpixel/#comment-888642</link>
		<dc:creator>Christopher Stevens</dc:creator>
		<pubDate>Wed, 27 Jul 2011 12:55:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=301#comment-888642</guid>
		<description>Thanks for sharing your experiment! I&#039;m referencing this for a webcam motion sensing experiment. If the total RGB values change by a certain amount, it&#039;s a great opportunity to capture an image and upload it to my site for future reference. Otherwise, it would save bandwidth and storage by not uploading like images.

Best regards,

Chris</description>
		<content:encoded><![CDATA[<p>Thanks for sharing your experiment! I&#8217;m referencing this for a webcam motion sensing experiment. If the total RGB values change by a certain amount, it&#8217;s a great opportunity to capture an image and upload it to my site for future reference. Otherwise, it would save bandwidth and storage by not uploading like images.</p>
<p>Best regards,</p>
<p>Chris</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Markus</title>
		<link>http://www.emanueleferonato.com/2008/06/28/playing-with-getpixel/#comment-213008</link>
		<dc:creator>Markus</dc:creator>
		<pubDate>Mon, 30 Jun 2008 20:12:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=301#comment-213008</guid>
		<description>Instead of comparing strings you could compare against integers:

switch (bitmap_bg.getPixel(x, y))
{
case 0x0000FF: b++; break;
case 0x00FF00: g++; break;
case 0xFF0000: r++; break;
default: other++; break;
}</description>
		<content:encoded><![CDATA[<p>Instead of comparing strings you could compare against integers:</p>
<p>switch (bitmap_bg.getPixel(x, y))<br />
{<br />
case 0x0000FF: b++; break;<br />
case 0x00FF00: g++; break;<br />
case 0xFF0000: r++; break;<br />
default: other++; break;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://www.emanueleferonato.com/2008/06/28/playing-with-getpixel/#comment-212171</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Mon, 30 Jun 2008 04:26:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=301#comment-212171</guid>
		<description>He is simply showing how to find out how much of the image is comprised of a certain color; for instance, how many pixels out of the entire image is exactly a red pixel. You could also use some threshold to get less precision if exact red isn&#039;t realistic.

Cool stuff, never thought of using something like this for a game. I can see it being useful for your latest ColorFill craze, lol.</description>
		<content:encoded><![CDATA[<p>He is simply showing how to find out how much of the image is comprised of a certain color; for instance, how many pixels out of the entire image is exactly a red pixel. You could also use some threshold to get less precision if exact red isn&#8217;t realistic.</p>
<p>Cool stuff, never thought of using something like this for a game. I can see it being useful for your latest ColorFill craze, lol.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kesh</title>
		<link>http://www.emanueleferonato.com/2008/06/28/playing-with-getpixel/#comment-212114</link>
		<dc:creator>Kesh</dc:creator>
		<pubDate>Mon, 30 Jun 2008 02:13:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=301#comment-212114</guid>
		<description>i equally am confused at what it does.</description>
		<content:encoded><![CDATA[<p>i equally am confused at what it does.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mr. F.</title>
		<link>http://www.emanueleferonato.com/2008/06/28/playing-with-getpixel/#comment-212107</link>
		<dc:creator>Mr. F.</dc:creator>
		<pubDate>Mon, 30 Jun 2008 01:54:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=301#comment-212107</guid>
		<description>Ohter.

Cut and paste isn&#039;t your friend.</description>
		<content:encoded><![CDATA[<p>Ohter.</p>
<p>Cut and paste isn&#8217;t your friend.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shadow Scythe</title>
		<link>http://www.emanueleferonato.com/2008/06/28/playing-with-getpixel/#comment-212059</link>
		<dc:creator>Shadow Scythe</dc:creator>
		<pubDate>Mon, 30 Jun 2008 00:05:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=301#comment-212059</guid>
		<description>I&#039;m afaid I don&#039;t quite understand it.</description>
		<content:encoded><![CDATA[<p>I&#8217;m afaid I don&#8217;t quite understand it.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced
Database Caching 6/11 queries in 0.012 seconds using disk: basic

Served from: www.emanueleferonato.com @ 2012-02-10 21:18:01 -->
