Editar

Compartir a través de


SKCanvas.DrawImage Method

Definition

Overloads

DrawImage(SKImage, SKPoint, SKPaint)

Draws an image on the canvas.

DrawImage(SKImage, SKRect, SKPaint)

Draws an image on the canvas.

DrawImage(SKImage, SKRect, SKRect, SKPaint)

Draws an image on the canvas.

DrawImage(SKImage, Single, Single, SKPaint)

Draws an image on the canvas.

DrawImage(SKImage, SKPoint, SKPaint)

Draws an image on the canvas.

public void DrawImage (SkiaSharp.SKImage image, SkiaSharp.SKPoint p, SkiaSharp.SKPaint paint = default);

Parameters

image
SKImage

The image to draw.

p
SKPoint

The destination coordinates for the image.

paint
SKPaint

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

Applies to

DrawImage(SKImage, SKRect, SKPaint)

Draws an image on the canvas.

public void DrawImage (SkiaSharp.SKImage image, SkiaSharp.SKRect dest, SkiaSharp.SKPaint paint = default);

Parameters

image
SKImage

The image to draw.

dest
SKRect

The region to draw the image into.

paint
SKPaint

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

Applies to

DrawImage(SKImage, SKRect, SKRect, SKPaint)

Draws an image on the canvas.

public void DrawImage (SkiaSharp.SKImage image, SkiaSharp.SKRect source, SkiaSharp.SKRect dest, SkiaSharp.SKPaint paint = default);

Parameters

image
SKImage

The image to draw.

source
SKRect

The source region to copy.

dest
SKRect

The region to draw the image into.

paint
SKPaint

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

Applies to

DrawImage(SKImage, Single, Single, SKPaint)

Draws an image on the canvas.

public void DrawImage (SkiaSharp.SKImage image, float x, float y, SkiaSharp.SKPaint paint = default);

Parameters

image
SKImage

The image to draw.

x
Single

The destination x-coordinate for the image.

y
Single

The destination y-coordinate for the image.

paint
SKPaint

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

Applies to