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