편집

다음을 통해 공유


SKCanvas.DrawRect Method

Definition

Overloads

DrawRect(SKRect, SKPaint)

Draws a rectangle in the canvas.

DrawRect(Single, Single, Single, Single, SKPaint)

Draws a rectangle in the canvas.

DrawRect(SKRect, SKPaint)

Draws a rectangle in the canvas.

public void DrawRect (SkiaSharp.SKRect rect, SkiaSharp.SKPaint paint);

Parameters

rect
SKRect

The rectangle to draw.

paint
SKPaint

The paint to use when drawing the rectangle.

Applies to

DrawRect(Single, Single, Single, Single, SKPaint)

Draws a rectangle in the canvas.

public void DrawRect (float x, float y, float w, float h, SkiaSharp.SKPaint paint);

Parameters

x
Single

The x-coordinate.

y
Single

The y-coordinate.

w
Single

The rectangle width.

h
Single

The rectangle height.

paint
SKPaint

The paint to use when drawing the rectangle.

Applies to