Re: Avoid drawing in half pixel
Re: Avoid drawing in half pixel
- Subject: Re: Avoid drawing in half pixel
- From: Simone Tellini <email@hidden>
- Date: Wed, 05 May 2010 18:01:43 +0200
On Wed, 5 May 2010 17:52:53 +0200, Gustavo Pizano
<email@hidden> wrote:
> So at the beginning of my drawRect, shall I use NSIntegralRect([self
> bounds])?
yes, and use the resulting rect's origin as reference point for your
drawing.
> Im gonna give a try... most probably I need antialiasing, because Im
> drawing some strings also in the view, so having no AA will affect them
> isn't it?
you can turn it on/off according to your needs: ie. turn it off, draw
vertical/horizontal lines that you don't want to become blurry, turn it on
and draw the rest.
--
Simone Tellini
http://www.tellini.org
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden