get_stroke_bounds


Description:

public bool get_stroke_bounds (Stroke stroke, out Rect bounds)

Computes the bounds for stroking the given path with the given parameters.

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.

Parameters:

this

a path

stroke

stroke parameters

bounds

the bounds to fill in

Returns:

true if the path has bounds, false if the path is known to be empty and have no bounds.