편집

다음을 통해 공유


SKCanvas.DrawPicture Method

Definition

Overloads

DrawPicture(SKPicture, SKPaint)

Draws a picture on the canvas.

DrawPicture(SKPicture, SKMatrix, SKPaint)

Draws a picture on the canvas.

DrawPicture(SKPicture, SKPoint, SKPaint)

Draws a picture on the canvas.

DrawPicture(SKPicture, Single, Single, SKPaint)

Draws a picture on the canvas.

DrawPicture(SKPicture, SKPaint)

Draws a picture on the canvas.

public void DrawPicture (SkiaSharp.SKPicture picture, SkiaSharp.SKPaint paint = default);

Parameters

picture
SKPicture

The picture to draw.

paint
SKPaint

The paint to use when drawing the picture, or null.

Applies to

DrawPicture(SKPicture, SKMatrix, SKPaint)

Draws a picture on the canvas.

public void DrawPicture (SkiaSharp.SKPicture picture, ref SkiaSharp.SKMatrix matrix, SkiaSharp.SKPaint paint = default);

Parameters

picture
SKPicture

The picture to draw.

matrix
SKMatrix

The matrix to apply while painting.

paint
SKPaint

The paint to use when drawing the picture, or null.

Remarks

This is equivalent to calling Save(), followed by Concat(SKMatrix) with the specified matrix, DrawPicture(SKPicture, SKPaint) and then Restore().

If paint is non-null, the picture is drawn into a temporary buffer, and then the paint's alpha, color filter, image filter, blend mode are applied to that buffer as it is drawn to the canvas.

Applies to

DrawPicture(SKPicture, SKPoint, SKPaint)

Draws a picture on the canvas.

public void DrawPicture (SkiaSharp.SKPicture picture, SkiaSharp.SKPoint p, SkiaSharp.SKPaint paint = default);

Parameters

picture
SKPicture

The picture to draw.

p
SKPoint

The destination coordinates for the picture.

paint
SKPaint

The paint to use when drawing the picture, or null.

Applies to

DrawPicture(SKPicture, Single, Single, SKPaint)

Draws a picture on the canvas.

public void DrawPicture (SkiaSharp.SKPicture picture, float x, float y, SkiaSharp.SKPaint paint = default);

Parameters

picture
SKPicture

The picture to draw.

x
Single

The destination x-coordinate for the picture.

y
Single

The destination y-coordinate for the picture.

paint
SKPaint

The paint to use when drawing the picture, or null.

Applies to