Re: Drawing after CGContextClosePath() still appends line
Re: Drawing after CGContextClosePath() still appends line
- Subject: Re: Drawing after CGContextClosePath() still appends line
- From: Graham Cox <email@hidden>
- Date: Wed, 21 Aug 2013 10:49:37 +0200
On 20/08/2013, at 2:51 AM, Rick Mann <email@hidden> wrote:
> Obviously, it can't be changed now, but AddArc() should never have drawn that first line segment. It's inconsistent with what you probably want, and with other methods like CGContextAddLines() or CGContextAddRect().
Depends. In some cases it's really handy that it adds the line - e.g. for drawing round-cornered rectangles where calculating the actual end point of the arc is tedious - instead just use a centre point and radius and it figures out the rest for you.
I guess the engineer decided that these useful cases outweigh those other cases when it's a nuisance.
--Graham
_______________________________________________
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