• 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: Alastair Houghton <email@hidden>
  • Date: Mon, 16 Feb 2004 17:44:59 +0000

On 13 Feb 2004, at 15:54, Bob Miller wrote:

> 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.

I know this has already been answered, but for completeness, anyone
looking for an answer to this question should check-out my FAQ, here:

http://www.alastairs-place.net/cocoa/faq.txt

BTW, one complication that hasn't been mentioned so far is that the
line endcap style makes a difference to the appearance of the very ends
of the line... with the default setting, adjusting the co-ordinates by
0.5 in either direction will result in a solid line *apart from the
endpoints*, which will be blurred. (That niggle is mentioned in my
FAQ.)

Kind regards,

Alastair.

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.

References: 
 >How to draw hairline ? (From: Bob Miller <email@hidden>)

  • Prev by Date: Re: XetSystemUIMode
  • Next by Date: Re: Again: Non-activating Window
  • Previous by thread: Re: How to draw hairline ?
  • Next by thread: Re: How to draw hairline ?
  • Index(es):
    • Date
    • Thread