Skip to main content

tight_bounds

Function tight_bounds 

pub fn tight_bounds(path: &Handle<SkPath>) -> Option<Rect>
👎Deprecated since 0.83.0:

Use Path::compute_tight_bounds() and test if the resulting Rect::is_finite()

Expand description

Set the resulting rectangle to the tight bounds of the path.

  • path The path measured.

Returns the tight bounds of the path, if they could be computed.