Re: Round Corners With BezierPath
Re: Round Corners With BezierPath
- Subject: Re: Round Corners With BezierPath
- From: Heinrich Giesen <email@hidden>
- Date: Thu, 24 Aug 2006 09:16:05 +0200
On 24.08.2006, at 02:03, Dan Messing wrote:
That one seems overly complicated.
and proposes a solution using the method:
appendBezierPathWithArcWithCenter:radius:startAngle:endAngle:
see also:
<http://www.cocoabuilder.com/archive/message/cocoa/2001/8/28/39916>
I prefer a simpler method, see:
<http://www.cocoabuilder.com/archive/message/cocoa/2005/4/11/132889>
which does not need to compute angles:
appendBezierPathWithArcFromPoint:toPoint:radius:
This method does the same but also allows to not only draw rects with
rounded corners but also to draw any polygon with rounded corners.
For a good description read a PostScript book for the operator arcto
Heinrich
--
Heinrich Giesen
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden