Enumeration

CGPathDrawingMode

Options for rendering a path.

Declaration

typedef enum CGPathDrawingMode : int32_t {
    ...
} CGPathDrawingMode;

Overview

You can pass a path drawing mode constant to the function CGContextDrawPath to specify how Core Graphics should paint a graphics context’s current path.

Topics

Constants

kCGPathFill

Render the area contained within the path using the non-zero winding number rule.

kCGPathEOFill

Render the area within the path using the even-odd rule.

kCGPathStroke

Render a line along the path.

kCGPathFillStroke

First fill and then stroke the path, using the nonzero winding number rule.

kCGPathEOFillStroke

First fill and then stroke the path, using the even-odd rule.

See Also

Drawing the Current Graphics Path

CGContextDrawPath

Draws the current path using the provided drawing mode.

CGContextStrokePath

Paints a line along the current path.