Re: Cocoa and PICT
Re: Cocoa and PICT
- Subject: Re: Cocoa and PICT
- From: Scott Thompson <email@hidden>
- Date: Mon, 13 Aug 2007 13:27:28 -0500
On Aug 13, 2007, at 12:14 PM, I. Savant wrote:
The only thing I'm having trouble with at the moment is the
NSBezierPath's -setFlatness: does not appear to make things very
smooth. Does anybody know a good sweet spot for getting smoother arcs
with a flattened bezier path?
You can flatten a bezier path to create an approximation that is as
close as you care to make it. The cost you pay is adding additional
segments as the flatness gets smaller.
Try setting your flatness to something around 0.5 - 2.0 or so and you
should have something that is pretty smooth as you are going to get it.
Scott
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden