Method Cairo.Context()->path_extents()


Method path_extents

array(float) path_extents()

Description

Computes a bounding box in user-space coordinates covering the points on the current path. If the current path is empty, returns an empty rectangle ({0, 0, 0, 0}). Stroke parameters, fill rule, surface dimensions and clipping are not taken into account.

Contrast with fill_extents() and stroke_extents() which return the extents of only the area that would be "inked" by the corresponding drawing operations.

Returns

an array with coordinates for the left, top, right, and bottom, respectively, of the resulting extents