• 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
Re: NSBezierPath + thin lines + antialias = :(
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSBezierPath + thin lines + antialias = :(


  • Subject: Re: NSBezierPath + thin lines + antialias = :(
  • From: Uli Kusterer <email@hidden>
  • Date: Mon, 09 Feb 2015 22:28:28 +0100

On 09 Feb 2015, at 22:18, Jerry Krinock <email@hidden> 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 (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: Jerry Krinock <email@hidden>
References: 
 >NSBezierPath + thin lines + antialias = :( (From: Jerry Krinock <email@hidden>)

  • Prev by Date: NSBezierPath + thin lines + antialias = :(
  • Next by Date: Re: NSBezierPath + thin lines + antialias = :(
  • Previous by thread: NSBezierPath + thin lines + antialias = :(
  • Next by thread: Re: NSBezierPath + thin lines + antialias = :(
  • Index(es):
    • Date
    • Thread