Re: Cocoa and PICT
Re: Cocoa and PICT
- Subject: Re: Cocoa and PICT
- From: Scott Thompson <email@hidden>
- Date: Mon, 13 Aug 2007 15:56:19 -0500
On Aug 13, 2007, at 3:18 PM, I. Savant wrote:
On 8/13/07, Scott Thompson <email@hidden> wrote:
A typical default flatness is 10.0.
Hmmm ... the NSBezierPath documentation says, "The default flatness
value is 0.6, which yields smooth curves," in both the -setFlatness:
and +setDefaultFlatness: methods. It also says, "smaller numbers give
smoother curves".
D'OH... You're right. I'm confusing flatness and the Miter Limit.
The default Miter Limit is typically about 10. Flatness is, as you
say, around 0.5.
Sorry about that
Actually ... ;-) I believe it's a difference in how other apps are
displaying it. In Preview (when I write the data out to a file), the
arcs are as smooth as they can be, considering no antialiasing. In
other tools in the workflow, the PICT is represented with smoother
edges (they're antialiasing a *bit*) but they have a slight flatness
as you'd expect with fewer, longer segments. Odd.
I'll send you a screenshot off-list as I have no access from this
facility to any convenient sharing/hosting locations. I'm frankly
surprised I'm allowed access to gmail ...
Yup. It appears that the application that is receiving the PICT is re-
parsing the opcodes and rendering the PICT with antialiasing. That
antialiasing makes the flatness in the image more evident than when
QuickDraw renders 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