Cairo.StrokeExtents (gb.cairo)

Static Property Read StrokeExtents As CairoExtents

Computes a bounding box in user coordinates covering the area that would be affected, (the "inked" area), by a Cairo.Stroke operation given the current path and stroke parameters. If the current path is empty, returns an empty rectangle. Surface dimensions and clipping are not taken into account.

Note that if the line width is set to exactly zero, then Cairo.StrokeExtents will return an empty rectangle. Contrast with Cairo.PathExtents which can be used to compute the non-empty bounds as the line width approaches zero.

Note that Cairo.StrokeExtents must necessarily do more work to compute the precise inked areas in light of the stroke parameters, so Cairo.PathExtents may be more desirable for sake of performance if non-inked path extents are desired.

See also