Re: Avoid drawing in half pixel
Re: Avoid drawing in half pixel
- Subject: Re: Avoid drawing in half pixel
- From: Gustavo Pizano <email@hidden>
- Date: Wed, 5 May 2010 18:11:18 +0200
On May 5, 2010, at 6:01 PM, Simone Tellini wrote:
> 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.
>
Yes thats what Im doing right now, turning on and off and saving and restoring the ctx, now im dealing with the rounded corners of the path .. :S..
G.
> --
> 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
_______________________________________________
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