CGContextRefc =UIGraphicsGetCurrentCont<wbr>ext<span style="word-wrap: normal; word-break: normal; line-height: 21px; ">();</span></wbr>
Before you begin a new path, call the function<wbr><code style="font-size: 13px; font-family: Courier, Consolas, monospace; color: rgb(102, 102, 102); ">CGContextBeginPath</code>.</wbr>
Lines, arcs, and curves are drawn starting at the current point. An empty path has no current point; you must call<wbr><code style="font-size: 13px; font-family: Courier, Consolas, monospace; color: rgb(102, 102, 102); ">CGContextMoveToPoint</code><wbr>to set the starting point for the first subpath or call a convenience function that implicitly does this for you.</wbr></wbr>
When you want to close the current subpath within a path, call the function<wbr><code style="font-size: 13px; font-family: Courier, Consolas, monospace; color: rgb(102, 102, 102); ">CGContextClosePath</code><wbr>to connect a segment to the starting point of the subpath. Subsequent path calls begin a new subpath, even if you do not explicitly set a new starting point.</wbr></wbr>
When you draw arcs, Quartz draws a line between the current point and the starting point of the arc.
Quartz routines that add ellipses and rectangles add a new closed subpath to the path.
You must call a painting function to fill or stroke the path because creating a path does not draw the path. See<wbr><span style="word-wrap: normal; word-break: normal; line-height: normal; margin-top: 0px; font: normal normal normal 100%/normal 'Lucida Grande', Geneva, Helvetica, Arial, sans-serif; margin-bottom: 0.833em; padding-bottom: 0.833em; vertical-align: top; "><a href="http://developer.apple.com/library/ios/documentation/GraphicsImaging/Conceptual/drawingwithquartz2d/dq_paths/dq_paths.html#//apple_ref/doc/uid/TP30001066-CH211-CJBEIHHJ" style="text-decoration: none; color: rgb(51, 102, 204); ">“Painting a Path”</a></span><wbr>for detailed information.</wbr></wbr>
CGContextRefc =UIGraphicsGetCurrentCont<wbr>ext<span style="word-wrap: normal; word-break: normal; line-height: 21px; ">();</span></wbr>
Before you begin a new path, call the function<wbr><code style="font-size: 13px; font-family: Courier, Consolas, monospace; color: rgb(102, 102, 102); ">CGContextBeginPath</code>.</wbr>
Lines, arcs, and curves are drawn starting at the current point. An empty path has no current point; you must call<wbr><code style="font-size: 13px; font-family: Courier, Consolas, monospace; color: rgb(102, 102, 102); ">CGContextMoveToPoint</code><wbr>to set the starting point for the first subpath or call a convenience function that implicitly does this for you.</wbr></wbr>
When you want to close the current subpath within a path, call the function<wbr><code style="font-size: 13px; font-family: Courier, Consolas, monospace; color: rgb(102, 102, 102); ">CGContextClosePath</code><wbr>to connect a segment to the starting point of the subpath. Subsequent path calls begin a new subpath, even if you do not explicitly set a new starting point.</wbr></wbr>
When you draw arcs, Quartz draws a line between the current point and the starting point of the arc.
Quartz routines that add ellipses and rectangles add a new closed subpath to the path.
You must call a painting function to fill or stroke the path because creating a path does not draw the path. See<wbr><span style="word-wrap: normal; word-break: normal; line-height: normal; margin-top: 0px; font: normal normal normal 100%/normal 'Lucida Grande', Geneva, Helvetica, Arial, sans-serif; margin-bottom: 0.833em; padding-bottom: 0.833em; vertical-align: top; "><a href="http://developer.apple.com/library/ios/documentation/GraphicsImaging/Conceptual/drawingwithquartz2d/dq_paths/dq_paths.html#//apple_ref/doc/uid/TP30001066-CH211-CJBEIHHJ" style="text-decoration: none; color: rgb(51, 102, 204); ">“Painting a Path”</a></span><wbr>for detailed information.</wbr></wbr>