Re: Drawing after CGContextClosePath() still appends line

2013-08-21 Thread David Duncan
On Aug 19, 2013, at 6:08 PM, zou tian wrote: > may be you can try CGContextSaveState and CGContextRestoreState ~~ These functions don’t save and restore the current path. -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Pleas

Re: Drawing after CGContextClosePath() still appends line

2013-08-21 Thread Graham Cox
On 20/08/2013, at 2:51 AM, Rick Mann 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

Re: Drawing after CGContextClosePath() still appends line

2013-08-21 Thread zou tian
may be you can try CGContextSaveState and CGContextRestoreState ~~ 在 2013年8月20日,上午8:03,Rick Mann 写道: > 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. U

Re: Drawing after CGContextClosePath() still appends line

2013-08-19 Thread Rick Mann
On Aug 19, 2013, at 17:47 , Ken Thomases wrote: > On Aug 19, 2013, at 7:36 PM, Rick Mann wrote: > >> On Aug 19, 2013, at 17:25 , Roland King wrote: >> >>> >>> On 20 Aug, 2013, at 8:03 AM, Rick Mann wrote: >>> I'm drawing a couple of arcs and then calling ClosePath() to close up the >

Re: Drawing after CGContextClosePath() still appends line

2013-08-19 Thread Ken Thomases
On Aug 19, 2013, at 7:36 PM, Rick Mann wrote: > On Aug 19, 2013, at 17:25 , Roland King wrote: > >> >> On 20 Aug, 2013, at 8:03 AM, Rick Mann wrote: >> >>> 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 proc

Re: Drawing after CGContextClosePath() still appends line

2013-08-19 Thread Roland King
On 20 Aug, 2013, at 8:36 AM, Rick Mann wrote: > > On Aug 19, 2013, at 17:25 , Roland King wrote: > >> >> On 20 Aug, 2013, at 8:03 AM, Rick Mann wrote: >> >>> 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

Re: Drawing after CGContextClosePath() still appends line

2013-08-19 Thread Rick Mann
On Aug 19, 2013, at 17:25 , Roland King wrote: > > On 20 Aug, 2013, at 8:03 AM, Rick Mann wrote: > >> 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 thin

Re: Drawing after CGContextClosePath() still appends line

2013-08-19 Thread Roland King
On 20 Aug, 2013, at 8:03 AM, Rick Mann wrote: > 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 las

Drawing after CGContextClosePath() still appends line

2013-08-19 Thread Rick Mann
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