<?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: Blurred drawing with quartz</title>
	<atom:link href="http://www.dpompa.com/blog/code/blurred-drawing-with-quartz/feed" rel="self" type="application/rss+xml" />
	<link>http://www.dpompa.com/blog/code/blurred-drawing-with-quartz</link>
	<description>dPompa Blog</description>
	<lastBuildDate>Sat, 22 May 2010 04:48:49 +0200</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Ofri Wolfus</title>
		<link>http://www.dpompa.com/blog/code/blurred-drawing-with-quartz/comment-page-1#comment-5</link>
		<dc:creator>Ofri Wolfus</dc:creator>
		<pubDate>Thu, 12 Nov 2009 22:10:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.dpompa.com/blog/?p=38#comment-5</guid>
		<description>You&#039;re absolutely right. This is just a function I hacked up when I noticed the blurred drawing. I actually discovered about CGRectIntegral() slightly later, and recommend using that.</description>
		<content:encoded><![CDATA[<p>You&#8217;re absolutely right. This is just a function I hacked up when I noticed the blurred drawing. I actually discovered about CGRectIntegral() slightly later, and recommend using that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: QC</title>
		<link>http://www.dpompa.com/blog/code/blurred-drawing-with-quartz/comment-page-1#comment-4</link>
		<dc:creator>QC</dc:creator>
		<pubDate>Thu, 05 Nov 2009 08:47:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.dpompa.com/blog/?p=38#comment-4</guid>
		<description>I am not sure how this is better than CGRectIntegral().

This code could move the right and bottom edges by up to a whole pixel, but it would never move the left or top edges by more than half a pixel. That is a strange bias to have.

Finally, there’s a lot of potentially costly type conversion going on: first from double to long double, and then from long to double. Using rint() (and rintf() for 32-bit) would avoid that. Using round() and roundf() would also avoid the dependency on the prevailing rounding mode.</description>
		<content:encoded><![CDATA[<p>I am not sure how this is better than CGRectIntegral().</p>
<p>This code could move the right and bottom edges by up to a whole pixel, but it would never move the left or top edges by more than half a pixel. That is a strange bias to have.</p>
<p>Finally, there’s a lot of potentially costly type conversion going on: first from double to long double, and then from long to double. Using rint() (and rintf() for 32-bit) would avoid that. Using round() and roundf() would also avoid the dependency on the prevailing rounding mode.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
