SKRoundRect.SetRectRadii 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
| Name | Description |
|---|---|
| SetRectRadii(SKRect, SKPoint[]) |
Sets this rectangle to be a rounded rectangle. |
| SetRectRadii(SKRect, ReadOnlySpan<SKPoint>) |
Sets the rectangle with individual corner radii specified as a span of points. |
SetRectRadii(SKRect, ReadOnlySpan<SKPoint>)
Sets the rectangle with individual corner radii specified as a span of points.
public void SetRectRadii(SkiaSharp.SKRect rect, ReadOnlySpan<SkiaSharp.SKPoint> radii);
Parameters
- rect
- SKRect
The bounds of the rounded rectangle.
- radii
- ReadOnlySpan<SKPoint>
An array of four points representing the radii for each corner (upper-left, upper-right, lower-right, lower-left).
Remarks
If the radii span does not contain exactly four elements, an exception is thrown.