編集

次の方法で共有


SKPath.AddRect Method

Definition

Overloads

AddRect(SKRect, SKPathDirection, UInt32)

Adds a closed rectangle contour to the path.

AddRect(SKRect, SKPathDirection)

Adds a closed rectangle contour to the path.

AddRect(SKRect, SKPathDirection, UInt32)

Adds a closed rectangle contour to the path.

public void AddRect (SkiaSharp.SKRect rect, SkiaSharp.SKPathDirection direction, uint startIndex);

Parameters

rect
SKRect

The rectangle to add as a closed contour to the path

direction
SKPathDirection

The direction to wind the rectangle's contour.

startIndex
UInt32

Initial point of the contour (initial MoveTo(SKPoint)), expressed as a corner index, starting in the upper-left position, clock-wise. Must be in the range of 0..3.

Remarks

Add a closed rectangle contour to the path with an initial point of the contour (startIndex) expressed as a corner index.

Applies to

AddRect(SKRect, SKPathDirection)

Adds a closed rectangle contour to the path.

public void AddRect (SkiaSharp.SKRect rect, SkiaSharp.SKPathDirection direction = SkiaSharp.SKPathDirection.Clockwise);

Parameters

rect
SKRect

The rectangle to add as a closed contour to the path

direction
SKPathDirection

The direction to wind the rectangle's contour.

Applies to