• 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: How to draw hairline ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to draw hairline ?


  • Subject: Re: How to draw hairline ?
  • From: Ryan Bates <email@hidden>
  • Date: Fri, 13 Feb 2004 10:04:35 -0800

Are you trying to draw a line 1 pixel thick? You will need to offset your drawing by 0.5 because NSBezierPath draws in-between the pixels. I know there's more info on this in the Archives:

<http://cocoa.mamasam.com/index.php>

Ryan

On Feb 13, 2004, at 7:54 AM, Bob Miller wrote:

Hello,

This is probably a basic question but, does anyone know how to draw a hair-line using NSBezierPath ? I've tried setting the line thickness to 0 and to 1 and it seems to draw thicker than that. I now there are device artifacts but I've seen it done in other appls. I also tried just drawing a very thin rect and that doesn't seem to help either. Any ideas would be most appreciated.

Thanks in advance,
Regards,
Bob M
_______________________________________________
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.
_______________________________________________
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: How to draw hairline ?
      • From: Daniel Todd Currie <email@hidden>
References: 
 >How to draw hairline ? (From: Bob Miller <email@hidden>)

  • Prev by Date: Re: [Slightly OT] Shareware donation collection
  • Next by Date: Re: static objects "autoreleased with no pool in place - just leaking"
  • Previous by thread: How to draw hairline ?
  • Next by thread: Re: How to draw hairline ?
  • Index(es):
    • Date
    • Thread