편집

다음을 통해 공유


SKPath.GetBounds(SKRect) Method

Definition

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