<?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: What Color is My Pixel? Image based color picker on iPhone</title>
	<atom:link href="http://www.markj.net/iphone-uiimage-pixel-color/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.markj.net/iphone-uiimage-pixel-color/</link>
	<description>iPhone App Development &#38; Consulting</description>
	<lastBuildDate>Sat, 31 Jul 2010 13:58:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: markj</title>
		<link>http://www.markj.net/iphone-uiimage-pixel-color/comment-page-1/#comment-2275</link>
		<dc:creator>markj</dc:creator>
		<pubDate>Wed, 14 Jul 2010 18:40:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.markj.net/?p=245#comment-2275</guid>
		<description>Hey Marina - thanks for posting this update :-), and nice job remembering to include the check for the new .scale property.</description>
		<content:encoded><![CDATA[<p>Hey Marina &#8211; thanks for posting this update :-), and nice job remembering to include the check for the new .scale property.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marina</title>
		<link>http://www.markj.net/iphone-uiimage-pixel-color/comment-page-1/#comment-2274</link>
		<dc:creator>Marina</dc:creator>
		<pubDate>Wed, 14 Jul 2010 18:36:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.markj.net/?p=245#comment-2274</guid>
		<description>This code needs a minor adjustment to properly work with high resolution images on iPhone 4.
In function - (UIColor*) getPixelColorAtLocation:(CGPoint)point you need to add the following to lines:

	CGFloat x = 1.0;
	if ([self.image respondsToSelector:@selector(scale)]) x = self.image.scale;

and then change this line:
	int offset = 4*((w*round(point.y))+round(point.x));
to this:
	int offset = 4*((w*round(point.y))+round(point.x)*x);

Then everything works just fine on iPhone 4, and should still work fine if they come up with other resolution devices.</description>
		<content:encoded><![CDATA[<p>This code needs a minor adjustment to properly work with high resolution images on iPhone 4.<br />
In function &#8211; (UIColor*) getPixelColorAtLocation:(CGPoint)point you need to add the following to lines:</p>
<p>	CGFloat x = 1.0;<br />
	if ([self.image respondsToSelector:@selector(scale)]) x = self.image.scale;</p>
<p>and then change this line:<br />
	int offset = 4*((w*round(point.y))+round(point.x));<br />
to this:<br />
	int offset = 4*((w*round(point.y))+round(point.x)*x);</p>
<p>Then everything works just fine on iPhone 4, and should still work fine if they come up with other resolution devices.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mobin</title>
		<link>http://www.markj.net/iphone-uiimage-pixel-color/comment-page-1/#comment-2261</link>
		<dc:creator>Mobin</dc:creator>
		<pubDate>Thu, 01 Jul 2010 12:11:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.markj.net/?p=245#comment-2261</guid>
		<description>Really Awesome dude... It really helps me...</description>
		<content:encoded><![CDATA[<p>Really Awesome dude&#8230; It really helps me&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mital Pritmani</title>
		<link>http://www.markj.net/iphone-uiimage-pixel-color/comment-page-1/#comment-2260</link>
		<dc:creator>Mital Pritmani</dc:creator>
		<pubDate>Tue, 29 Jun 2010 07:12:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.markj.net/?p=245#comment-2260</guid>
		<description>hello,

this was a great tutial. Thanks for code also.

It worked and was very helpful for me.</description>
		<content:encoded><![CDATA[<p>hello,</p>
<p>this was a great tutial. Thanks for code also.</p>
<p>It worked and was very helpful for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pinkroad &#187; Blog Archive &#187; pixel RGB value</title>
		<link>http://www.markj.net/iphone-uiimage-pixel-color/comment-page-1/#comment-2171</link>
		<dc:creator>pinkroad &#187; Blog Archive &#187; pixel RGB value</dc:creator>
		<pubDate>Sat, 06 Mar 2010 10:21:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.markj.net/?p=245#comment-2171</guid>
		<description>[...] http://www.markj.net/iphone-uiimage-pixel-color/ [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://www.markj.net/iphone-uiimage-pixel-color/" rel="nofollow">http://www.markj.net/iphone-uiimage-pixel-color/</a> [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
