SKPath.AddRoundRect 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.
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
SkiaSharp