Re: NSBezierPath linewidth not correct
Re: NSBezierPath linewidth not correct
- Subject: Re: NSBezierPath linewidth not correct
- From: Graham Cox <email@hidden>
- Date: Sat, 2 Jan 2010 21:37:21 +1100
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