CGContextStrokePath
CGContextStrokePath is a function in the Core Graphics (Quartz 2D) API used to render (stroke) the current path in a graphics context. It draws the outline of the path using the current graphics state, including the stroke color, line width, line join and cap styles, dash pattern, and miter limit. The operation applies the current transformation matrix and clipping region when rendering.
To use CGContextStrokePath, a path is first constructed in a graphics context, typically by issuing calls such
A key behavioral note is that CGContextStrokePath consumes the current path: after stroking, the path is no
CGContextStrokePath is available on macOS and iOS and is commonly used in immediate-mode drawing routines where