• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSBezierPath + thin lines + antialias = :(
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSBezierPath + thin lines + antialias = :(
      • From: Quincey Morris <email@hidden>
    • Re: NSBezierPath + thin lines + antialias = :(
      • From: Jens Alfke <email@hidden>
    • Re: NSBezierPath + thin lines + antialias = :(
      • From: Uli Kusterer <email@hidden>
  • Prev by Date: Re: What UIControl could this be?
  • Next by Date: Re: NSBezierPath + thin lines + antialias = :(
  • Previous by thread: Q about maintaining uiimage size across devices
  • Next by thread: Re: NSBezierPath + thin lines + antialias = :(
  • Index(es):
    • Date
    • Thread