On 09 Feb 2015, at 22:18, Jerry Krinock <je...@ieee.org> wrote: > 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?
The image didn’t make it to the list, but are you perhaps drawing between pixels? Here’s an article (with pictures!) about this issue I wrote ages ago: http://orangejuiceliberationfront.com/are-your-rectangles-blurry-pale-and-have-rounded-corners/ Does that help? Cheers, -- Uli Kusterer “The Witnesses of TeachText are everywhere...” http://zathras.de _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com