CGPathAddRects
Appends an array of rectangles to a mutable graphics path.
Declaration
extern void CGPathAddRects(CGMutablePathRef path, const CGAffineTransform *m, const CGRect *rects, size_t count);Parameters
- path:
The mutable path to change.
- m:
An affine transformation matrix, or
NULLif no transformation is needed. If specified, Core Graphics applies the transformation to the rectangles before adding them to the path. - rects:
The array of new rectangles to add.
- count:
The number of elements in the array.
Discussion
This is a convenience function that adds an array of rectangles to a path. This function is equivalent to repeatedly calling the CGPathAddRect function to append the sequence of rectangles.