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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software