• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Cocoa and PICT
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Cocoa and PICT
      • From: "I. Savant" <email@hidden>
References: 
 >Cocoa and PICT (From: "I. Savant" <email@hidden>)
 >Re: Cocoa and PICT (From: "I. Savant" <email@hidden>)

  • Prev by Date: Re: CGImageRef to bitmap context? [SOLVED]
  • Next by Date: Re: CGImageRef to bitmap context? [SOLVED]
  • Previous by thread: Re: Cocoa and PICT
  • Next by thread: Re: Cocoa and PICT
  • Index(es):
    • Date
    • Thread