Re: How to draw hairline ?
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.