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 17:46:06 +0200
On Wed, 05 May 2010 17:40:24 +0200, Simone Tellini
<email@hidden>
wrote:
> _______________________________________________
>
ok, this weird. If I reply with Thunderbird, the body of the message gets
eaten by the mailing list server.
I was saying:
> I was reading the apple docs about this topic, and I tried at the
beginning of my drawRect
> method I did as in "Converting Coordinate Values" topic suggest to
convert my starting
> drawing point, but that din't help. I still see the above behavior.
you should probably leave the view frame alone. You could use
NSIntegralRect() to properly adjust the coordinates of the area you draw
in.
Or you can disable anti-aliasing, if not needed. Check
-setShouldAntialias: in NSGraphicsContext
--
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