Re: How to draw hairline ?
Re: How to draw hairline ?
- Subject: Re: How to draw hairline ?
- From: Daniel Todd Currie <email@hidden>
- Date: Fri, 13 Feb 2004 18:32:59 -0800
You can also set your line thickness to non-integer values, i.e.
smaller than 1.
On 2004 Feb 13, at 10:04, Ryan Bates wrote:
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.
_______________________________________________
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.