Contents

CGContextAddRects

Adds a set of rectangular paths to the current path.

Declaration

extern void CGContextAddRects(CGContextRef c, const CGRect *rects, size_t count);

Parameters

  • c:

    A graphics context.

  • rects:

    An array of rectangles, specified in user space coordinates.

  • count:

    The number of rectangles in the rects array.

Discussion

This is a convenience function that adds an array of rectangles to a path, as if it called addRect(_:) for each rectangle.

See Also

Constructing a Current Graphics Path