編輯

共用方式為


SKCanvas.DrawBitmap Method

Definition

Overloads

DrawBitmap(SKBitmap, SKPoint, SKPaint)

Draws a bitmap on the canvas.

DrawBitmap(SKBitmap, SKRect, SKPaint)

Draws a bitmap on the canvas.

DrawBitmap(SKBitmap, SKRect, SKRect, SKPaint)

Draws a bitmap on the canvas.

DrawBitmap(SKBitmap, Single, Single, SKPaint)

Draws a bitmap on the canvas.

DrawBitmap(SKBitmap, SKPoint, SKPaint)

Draws a bitmap on the canvas.

public void DrawBitmap (SkiaSharp.SKBitmap bitmap, SkiaSharp.SKPoint p, SkiaSharp.SKPaint paint = default);

Parameters

bitmap
SKBitmap

The bitmap to draw.

p
SKPoint

The destination coordinates for the bitmap.

paint
SKPaint

The paint to use when drawing the bitmap.

Applies to

DrawBitmap(SKBitmap, SKRect, SKPaint)

Draws a bitmap on the canvas.

public void DrawBitmap (SkiaSharp.SKBitmap bitmap, SkiaSharp.SKRect dest, SkiaSharp.SKPaint paint = default);

Parameters

bitmap
SKBitmap

The bitmap to draw.

dest
SKRect

The region to draw the bitmap into.

paint
SKPaint

The paint to use when drawing the bitmap.

Applies to

DrawBitmap(SKBitmap, SKRect, SKRect, SKPaint)

Draws a bitmap on the canvas.

public void DrawBitmap (SkiaSharp.SKBitmap bitmap, SkiaSharp.SKRect source, SkiaSharp.SKRect dest, SkiaSharp.SKPaint paint = default);

Parameters

bitmap
SKBitmap

The bitmap to draw.

source
SKRect

The source region to copy.

dest
SKRect

The region to draw the bitmap into.

paint
SKPaint

The paint to use when drawing the bitmap.

Applies to

DrawBitmap(SKBitmap, Single, Single, SKPaint)

Draws a bitmap on the canvas.

public void DrawBitmap (SkiaSharp.SKBitmap bitmap, float x, float y, SkiaSharp.SKPaint paint = default);

Parameters

bitmap
SKBitmap

The bitmap to draw.

x
Single

The destination x-coordinate for the bitmap.

y
Single

The destination y-coordinate for the bitmap.

paint
SKPaint

The paint to use when drawing the bitmap.

Applies to