Re: Drawing after CGContextClosePath() still appends line
Re: Drawing after CGContextClosePath() still appends line
- Subject: Re: Drawing after CGContextClosePath() still appends line
- From: zou tian <email@hidden>
- Date: Tue, 20 Aug 2013 09:08:52 +0800
may be you can try CGContextSaveState and CGContextRestoreState ~~
在 2013年8月20日,上午8:03,Rick Mann <email@hidden> 写道:
> I'm drawing a couple of arcs and then calling ClosePath() to close up the shape I drew. This works great. But then I repeat the process in a different place, and stroke the whole thing. Unfortunately, Core Graphics adds a line from the last point in the closed path to the first point of the new arc I add. From my reading of the docs, this line shouldn't happen.
>
> "After closing the subpath, your application can begin a new subpath without first calling CGContextMoveToPoint. In this case, a new subpath is implicitly created with a starting and current point equal to the previous subpath’s starting point."
>
> Now, the AddArc() docs do say it might be preceded by a straight line segment, but when the context first starts, there is no starting position; I wonder why the subpath doesn't behave the same way after ClosePath().
>
> iOS 6.1.3, iPad simulator or device.
>
> --
> Rick
>
>
>
>
> _______________________________________________
>
> 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
_______________________________________________
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