• 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: Line width in an NSBezierPath
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Line width in an NSBezierPath


  • Subject: Re: Line width in an NSBezierPath
  • From: Nathan Day <email@hidden>
  • Date: Mon, 13 May 2002 18:30:56 +0930

This question again, add 0.5 to line position. Search mail archives for explanation why.

On Monday, May 13, 2002, at 04:49 PM, Nicola Vitacolonna wrote:

Hi all,
a very simple question (I hope), for which I cannot find an answer.
I have a NSView in which I draw some horizontal black lines on a white
background. I have set the line width with setLineWidth:0.0 to be the
minimum allowed, but still these lines appear as they were
"anti-aliased" or something like that, so they appear thicker than one
pixel and, what's worse, their width differ from each other and changes
when I resize the NSView. This is not what I want.
How can I get a straight line whose (fixed) width is one pixel? A code
snippet follows.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Line width in an NSBezierPath
      • From: email@hidden
References: 
 >Line width in an NSBezierPath (From: Nicola Vitacolonna <email@hidden>)

  • Prev by Date: inserting graphics into NSString output
  • Next by Date: Question about Cocoa scripting
  • Previous by thread: Line width in an NSBezierPath
  • Next by thread: Re: Line width in an NSBezierPath
  • Index(es):
    • Date
    • Thread