Bearbeiten

SKRoundRect.SetRectRadii Method

Definition

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, SKPoint[])

Sets this rectangle to be a rounded rectangle.

public void SetRectRadii(SkiaSharp.SKRect rect, SkiaSharp.SKPoint[] radii);

Parameters

rect
SKRect

The rectangle.

radii
SKPoint[]

The corner radii.

Applies to

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.

Applies to