Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Cocoa and PICT
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa and PICT



On 10 Aug 2007, at 14:51, glenn andreas wrote:

There's even support for smoothing polygons using picture comments, which might be handy for simulating bezier paths.

Quickdraw pic comment based smooth polygons are cubics, and bezier paths are quadratic curves, and converting from one to the other is non-trivial (for any sort of decent quality).

I think you got that the wrong way round. QuickDraw's PolySmooth picture comment uses quadratic curves; NSBezierPath provides a cubic primitive. (Plainly you knew what you meant, since converting quadratic curves to cubics is easy... it's the other way that requires piecewise approximation.)


Kind regards,

Alastair.

--
http://alastairs-place.net


_______________________________________________

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


References: 
 >Cocoa and PICT (From: "I. Savant" <email@hidden>)
 >Re: Cocoa and PICT (From: Uli Kusterer <email@hidden>)
 >Re: Cocoa and PICT (From: glenn andreas <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.