Re: Cocoa and PICT
Re: Cocoa and PICT
- Subject: Re: Cocoa and PICT
- From: Henry McGilton <email@hidden>
- Date: Mon, 13 Aug 2007 20:01:55 -0700
On Aug 13, 2007, at 12:30 PM, I. Savant wrote:
On 8/13/07, Scott Thompson <email@hidden> wrote:
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.
Thing is, adjusting the flatness doesn't seem to make much of a
visual difference ... I don't mind sacrificing performance for more
segments, but there just doesn't seem to be any difference between 0.2
and 1.0.
Also, did you really mean 2.0? Isn't the convention usually that
1.0 is 100%?
Assuming setFlatness is a cardboard replica of PostScript's
setflat operator, the (excerpted paraphrased) description
for setflat from the most recent PostScript reference states:
'stroke, fill, clip operators render curves by approximating
them with straight line segments. flatness is the error
tolerance of this approximation---the maximum allowable distance
of any point of the approximation from the corresponding
point on the true curve *measured in output device pixels*
(* . . . * emphasis).
Acceptable range of values (for flatness) is 0.2 to 100.0.'
Cheers,
........ Henry
===============================+============================
Henry McGilton, Boulevardier | Trilithon Software
Objective-C/Java Composer | Seroia Research
-------------------------------+----------------------------
mailto:email@hidden | http://www.trilithon.com
|
===============================+============================
_______________________________________________
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