Returns the bounding box containing all points in a graphics path.
SDKs
- iOS 2.0+
- macOS 10.2+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Core Graphics
Declaration
Parameters
path
The graphics path to evaluate.
Return Value
A rectangle that represents the bounding box of the specified path. If the path is empty, this function returns CGRect
.
Discussion
The bounding box is the smallest rectangle completely enclosing all points in the path, including control points for Bézier and quadratic curves.