• 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 linewidth not correct
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSBezierPath linewidth not correct
      • From: Gustavo Pizano <email@hidden>
    • Re: NSBezierPath linewidth not correct
      • From: Gustavo Pizano <email@hidden>
References: 
 >NSBezierPath linewidth not correct (From: Gustavo Pizano <email@hidden>)

  • Prev by Date: NSBezierPath linewidth not correct
  • Next by Date: Re: NSBezierPath linewidth not correct
  • Previous by thread: NSBezierPath linewidth not correct
  • Next by thread: Re: NSBezierPath linewidth not correct
  • Index(es):
    • Date
    • Thread