• 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
Drawing elliptical curve using NSBezierPath
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Drawing elliptical curve using NSBezierPath


  • Subject: Drawing elliptical curve using NSBezierPath
  • From: Vinay Prabhu <email@hidden>
  • Date: Wed, 20 Dec 2006 17:40:46 +0530
  • Importance: Normal

I am trying to draw elliptical arc using NSBezierPath.
The arc must vary from Ellipse to Rect. Please see the attached image. The
blue curve is the elliptical curve and the bounding rectangle is stroked
with red color.
On windows, the arc is drawn using the addArc method.

Is there any direct replacement for the addArc method on Mac to draw
elliptical curve?

I have found one sample code in the mailing list,
http://lists.apple.com/archives/cocoa-dev/2003/Jul/msg00327.html

I am not able to get the effect shown in the attached file, using this code.

Any help is appreciated.
Thanks,
Vinay


Attachment: Ellipticle Curve.JPG
Description: JPEG image

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: Drawing elliptical curve using NSBezierPath
      • From: Scott Stevenson <email@hidden>
    • Re: Drawing elliptical curve using NSBezierPath
      • From: "Shawn Erickson" <email@hidden>
    • Re: Drawing elliptical curve using NSBezierPath
      • From: Michael Watson <email@hidden>
  • Prev by Date: Re: A bug in the setRoundingMode:NSNumberFormatterRoundHalfUp?
  • Next by Date: Re: [Q] is it shallow copy or deep copy? and why things are not retrieved well?
  • Previous by thread: Re: A bug in the setRoundingMode:NSNumberFormatterRoundHalfUp?
  • Next by thread: Re: Drawing elliptical curve using NSBezierPath
  • Index(es):
    • Date
    • Thread