Re: Drawing elliptical curve using NSBezierPath
Re: Drawing elliptical curve using NSBezierPath
- Subject: Re: Drawing elliptical curve using NSBezierPath
- From: Michael Watson <email@hidden>
- Date: Wed, 20 Dec 2006 14:15:23 -0500
I think –
appendBezierPathWithArcWithCenter:radius:startAngle:endAngle: may do
what you want. (And its clockwise variant.) See "Appending paths and
some common shapes" in the NSBezierPath documentation for info.
--
m-s
On 20 Dec, 2006, at 07:10, Vinay Prabhu wrote:
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
<Ellipticle Curve.JPG>
_______________________________________________
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:
40bungie.org
This email sent to email@hidden
_______________________________________________
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