getStrokeBounds

fun getStrokeBounds(stroke: Stroke, bounds: <Error class: unknown class>): Boolean

Computes the bounds for stroking the given path with the parameters in @stroke.

The returned bounds may be larger than necessary, because this function aims to be fast, not accurate. The bounds are guaranteed to contain the area affected by the stroke, including protrusions like miters.

Return

TRUE if the path has bounds, FALSE if the path is known to be empty and have no bounds.

Since

4.14

Parameters

stroke

stroke parameters

bounds

the bounds to fill in