Appends a path to onto a mutable graphics path.
SDKs
- iOS 2.0+
- macOS 10.2+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Core Graphics
Declaration
void CGPathAddPath(CGMutable Path Ref path1, const CGAffine Transform *m, CGPath Ref path2);
Parameters
path1
The mutable path to change.
m
A pointer to an affine transformation matrix, or
NULL
if no transformation is needed. If specified, Core Graphics applies the transformation topath2
before it is added topath1
.path2
The path to add.
Discussion
If the source path is non-empty, then its path elements are appended in order onto the mutable path. After the call completes, the start point and current point of the path are those of the last subpath in path2
.