Upravit

Sdílet prostřednictvím


SKPath.AddRoundRect Method

Definition

Overloads

AddRoundRect(SKRoundRect, SKPathDirection)

Adds a closed rectangle with rounded corners to the current path.

AddRoundRect(SKRoundRect, SKPathDirection, UInt32)

Adds a closed rectangle with rounded corners to the current path.

AddRoundRect(SKRect, Single, Single, SKPathDirection)

Adds a closed rectangle with rounded corners to the current path.

AddRoundRect(SKRoundRect, SKPathDirection)

Adds a closed rectangle with rounded corners to the current path.

public void AddRoundRect (SkiaSharp.SKRoundRect rect, SkiaSharp.SKPathDirection direction = SkiaSharp.SKPathDirection.Clockwise);

Parameters

rect
SKRoundRect

The rounded rectangle.

direction
SKPathDirection

The direction to wind the rectangle's contour.

Applies to

AddRoundRect(SKRoundRect, SKPathDirection, UInt32)

Adds a closed rectangle with rounded corners to the current path.

public void AddRoundRect (SkiaSharp.SKRoundRect rect, SkiaSharp.SKPathDirection direction, uint startIndex);

Parameters

rect
SKRoundRect

The rounded rectangle.

direction
SKPathDirection

The direction to wind the rectangle's contour.

startIndex
UInt32

Initial point of the contour (initial MoveTo(SKPoint)), expressed as an index of the radii minor/major points, ordered clock-wise. Must be in the range of 0..7.

Applies to

AddRoundRect(SKRect, Single, Single, SKPathDirection)

Adds a closed rectangle with rounded corners to the current path.

public void AddRoundRect (SkiaSharp.SKRect rect, float rx, float ry, SkiaSharp.SKPathDirection dir = SkiaSharp.SKPathDirection.Clockwise);

Parameters

rect
SKRect

The bounds of a the rounded rectangle.

rx
Single

The x-radius of the rounded corners.

ry
Single

The y-radius of the rounded corners

dir
SKPathDirection

The direction to wind the rectangle's contour.

Applies to