NSBezierPath + thin lines + antialias = :(
NSBezierPath + thin lines + antialias = :(
- Subject: NSBezierPath + thin lines + antialias = :(
- From: Jerry Krinock <email@hidden>
- Date: Mon, 09 Feb 2015 13:18:57 -0800
I may need to break down and learn something about graphics and drawing.
I use NSBezierPath in a -[NSView drawRect:] to do an engineering-style drawing. Here is a tiny arrowhead pointing to a vertical “dimension line”:
Not very nice. If instead I draw this in a graphics program, with antialiasing off, and save to a png file, the result is much clearer. (Its accuracy is a little compromised, but that’s OK.)
Of course this is an old problem, which, I think, goes away with Retina displays. But this is for an update to an OS X app, many of whom’s users have non-Retina displays.
Is there a way to draw thin lines in code, and get good results on non-Retina displays? What should I read to learn how?
Jerry
_______________________________________________
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