Re: Removing fuzzy lines (was Re: [NSBezierPath clipRect] do not do what is says!)
Re: Removing fuzzy lines (was Re: [NSBezierPath clipRect] do not do what is says!)
- Subject: Re: Removing fuzzy lines (was Re: [NSBezierPath clipRect] do not do what is says!)
- From: Eric Forget <email@hidden>
- Date: Fri, 27 Feb 2004 14:52:36 -0500
>
As I pointed-out in my other post, this doesn't work 100% of the time.
>
>
With the default endcap setting, a line of 1pt thickness from (10,
>
10.5) to (30, 10.5) will be solid, but a similar line from (10.5, 10.5)
>
to (30.5, 10.5) will have fuzzy ends. The reason is that unless the
>
style is set to NSSquareLineCapStyle, the latter line will only fill
>
half a pixel at either end.
>
>
It will, of course, work for closed boxes and other similar shapes,
>
because the line will enter and leave the corner pixels, filling them
>
completely.
Thanks Alastair for your tip. I didn't read your email before answering the
other one...
Eric
___________________________________________________________________
Eric Forget Cafederic
email@hidden <
http://www.cafederic.com/>
Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684>
_______________________________________________
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.