• 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
How to draw a 1 pixel bezierPath
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to draw a 1 pixel bezierPath


  • Subject: How to draw a 1 pixel bezierPath
  • From: Ron Fleckner <email@hidden>
  • Date: Sun, 21 Aug 2005 11:52:19 +1000

Hi,
I'm trying to draw a 1 pixel wide bezierPath, but any value I set in setLineWidth: that is less than 2.0 results in a 2 pixel wide line. One pixel width lines are everywhere (at the bottom of window title bars, toolbars and etc.) but not in my project! I'm not trying to do anything fancy and just use [path moveToPoint:aPoint], [path lineToPoint:nextPoint], [path setLineWidth:1.0], [path stroke].


Where should I be looking for info? The NSBezierPath docs and Basic Drawing make no mention of a 2 pixel floor for lineWidth.

Thanks for any help,
Ron
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: How to draw a 1 pixel bezierPath
      • From: Andy Matuschak <email@hidden>
  • Prev by Date: Re: Finding next / previous characters in an alphabet?
  • Next by Date: Re: Strange Managed Context Error
  • Previous by thread: Re: Printing an NSOpenGLView
  • Next by thread: Re: How to draw a 1 pixel bezierPath
  • Index(es):
    • Date
    • Thread