SKCanvas.DrawRoundRect Method

Definition

Overloads

DrawRoundRect(SKRoundRect, SKPaint)

Draws a rounded rectangle in the canvas.

DrawRoundRect(SKRect, SKSize, SKPaint)

Draws a rounded rectangle in the canvas.

DrawRoundRect(SKRect, Single, Single, SKPaint)

Draws a rounded rectangle in the canvas.

DrawRoundRect(Single, Single, Single, Single, Single, Single, SKPaint)

Draws a rounded rectangle in the canvas.

DrawRoundRect(SKRoundRect, SKPaint)

Draws a rounded rectangle in the canvas.

public void DrawRoundRect (SkiaSharp.SKRoundRect rect, SkiaSharp.SKPaint paint);

Parameters

rect
SKRoundRect

The rounded rectangle to draw.

paint
SKPaint

The paint to use when drawing the rectangle.

Remarks

The paint to use when drawing the rounded rectangle.

Applies to

DrawRoundRect(SKRect, SKSize, SKPaint)

Draws a rounded rectangle in the canvas.

public void DrawRoundRect (SkiaSharp.SKRect rect, SkiaSharp.SKSize r, SkiaSharp.SKPaint paint);

Parameters

rect
SKRect

The rectangle to draw.

r
SKSize

The radius of the oval used to round the corners.

paint
SKPaint

The paint to use when drawing the rectangle.

Remarks

The paint to use when drawing the rectangle.

Applies to

DrawRoundRect(SKRect, Single, Single, SKPaint)

Draws a rounded rectangle in the canvas.

public void DrawRoundRect (SkiaSharp.SKRect rect, float rx, float ry, SkiaSharp.SKPaint paint);

Parameters

rect
SKRect

The rectangle to draw.

rx
Single

The x-radius of the oval used to round the corners.

ry
Single

The y-radius of the oval used to round the corners.

paint
SKPaint

The paint to use when drawing the rectangle.

Applies to

DrawRoundRect(Single, Single, Single, Single, Single, Single, SKPaint)

Draws a rounded rectangle in the canvas.

public void DrawRoundRect (float x, float y, float w, float h, float rx, float ry, SkiaSharp.SKPaint paint);

Parameters

x
Single

The x-coordinate of the rectangle.

y
Single

The y-coordinate of the rectangle.

w
Single

The rectangle width.

h
Single

The rectangle height.

rx
Single

The x-radius of the oval used to round the corners.

ry
Single

The y-radius of the oval used to round the corners.

paint
SKPaint

The paint to use when drawing the rectangle.

Applies to