Function

CGPathGetPathBoundingBox

Returns the bounding box of a graphics path.

Declaration

CGRect CGPathGetPathBoundingBox(CGPathRef path);

Parameters

path

The graphics path to evaluate.

Return Value

A rectangle that represents the path bounding box of the specified path. If the path is empty, this function returns CGRectNull.

Discussion

The path bounding box is the smallest rectangle completely enclosing all points in the path but not including control points for Bézier and quadratic curves.

See Also

Getting Information about Core Graphics Paths

CGPathEqualToPath

Indicates whether two graphics paths are equivalent.

CGPathGetBoundingBox

Returns the bounding box containing all points in a graphics path.

CGPathGetCurrentPoint

Returns the current point in a graphics path.

CGPathGetTypeID

Returns the Core Foundation type identifier for Core Graphics paths.

CGPathIsEmpty

Indicates whether or not a graphics path is empty.

CGPathIsRect

Indicates whether or not a graphics path represents a rectangle.

CGPathContainsPoint

Checks whether a point is contained in a graphics path.

Beta Software

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