SKPath.GetBounds(SKRect) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the bounds of the path's points.
public bool GetBounds (out SkiaSharp.SKRect rect);
Parameters
- rect
- SKRect
The bounds, if the path contains any points.
Returns
Returns true if the path is not empty, otherwise false.
Remarks
This bounds may be larger than the actual shape, since curves do not extend as far as their control points. Additionally this bound encompasses all points, even isolated MoveTo either preceding or following the last non-degenerate contour.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.