Re: NSBezierPath linewidth not correct
Re: NSBezierPath linewidth not correct
- Subject: Re: NSBezierPath linewidth not correct
- From: Gustavo Pizano <email@hidden>
- Date: Sat, 2 Jan 2010 11:40:32 +0100
:S:S:S:S.... I didn't realize it... I was suspecting such a thing...
adding a .5 to the Y values of the path fix the whole thing.. thx a lot!!!
:D
Gustavo
On Jan 2, 2010, at 11:37 AM, Graham Cox wrote:
>
> On 02/01/2010, at 9:29 PM, Gustavo Pizano wrote:
>
>> but nothing seems to work... what am I missing here?
>
>
> You're drawing the line at an integer coordinate. That places it exactly between the pixels on the screen, so to anti-alias the line, it gets drawn on both sides at half brightness. Adding 0.5 to the x, y coordinates will draw a crisp 1 pixel wide line.
>
> --Graham
>
>
_______________________________________________
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