Strokes a sequence of line segments.
- iOS 2.0+
- macOS 10.4+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
An array of points, organized as pairs—the starting point of a line segment followed by the ending point of a line segment. For example, the first point in the array specifies the starting position of the first line, the second point specifies the ending position of the first line, the third point specifies the starting position of the second line, and so forth.
The number of points in the
This function creates a new path, adds the individual line segments to the path, and then strokes the path. The current path is cleared as a side effect of calling this function.
Paints the area within the current path, using the nonzero winding number rule.
Paints the area contained within the provided rectangle, using the fill color in the current graphics state.
Paints the areas contained within the provided rectangles, using the fill color in the current graphics state.
Paints the area of the ellipse that fits inside the provided rectangle, using the fill color in the current graphics state.
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