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 = null);

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.

DrawImage(SKImage, SKRect, SKPaint)

Draws an image on the canvas.

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

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.

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 = null);

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.

DrawImage(SKImage, Single, Single, SKPaint)

Draws an image on the canvas.

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

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