Edit

SKCanvas.DrawBitmap Method

Definition

Overloads

Name Description
DrawBitmap(SKBitmap, SKPoint, SKPaint)
Obsolete.

Draws a bitmap on the canvas.

DrawBitmap(SKBitmap, SKRect, SKPaint)
Obsolete.

Draws a bitmap on the canvas.

DrawBitmap(SKBitmap, SKPoint, SKSamplingOptions, SKPaint)

Draws a bitmap at the specified location using the given sampling options and paint.

DrawBitmap(SKBitmap, SKRect, SKRect, SKPaint)
Obsolete.

Draws a bitmap on the canvas.

DrawBitmap(SKBitmap, SKRect, SKSamplingOptions, SKPaint)

Draws the specified bitmap into the destination rectangle using the given sampling options.

DrawBitmap(SKBitmap, Single, Single, SKPaint)
Obsolete.

Draws a bitmap on the canvas.

DrawBitmap(SKBitmap, SKRect, SKRect, SKSamplingOptions, SKPaint)

Draws a portion of the specified bitmap into the destination rectangle using the given sampling options.

DrawBitmap(SKBitmap, Single, Single, SKSamplingOptions, SKPaint)

Draws a bitmap at the specified coordinates using the given sampling options and paint.

DrawBitmap(SKBitmap, SKPoint, SKPaint)

Caution

Use the overload with SKSamplingOptions instead.

Draws a bitmap on the canvas.

[System.Obsolete("Use the overload with SKSamplingOptions instead.")]
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.

Attributes

Applies to

DrawBitmap(SKBitmap, SKRect, SKPaint)

Caution

Use the overload with SKSamplingOptions instead.

Draws a bitmap on the canvas.

[System.Obsolete("Use the overload with SKSamplingOptions instead.")]
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.

Attributes

Applies to

DrawBitmap(SKBitmap, SKPoint, SKSamplingOptions, SKPaint)

Draws a bitmap at the specified location using the given sampling options and paint.

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

Parameters

bitmap
SKBitmap

The bitmap to draw.

p
SKPoint

The location at which to draw the upper-left corner of the bitmap.

sampling
SKSamplingOptions

The sampling options to apply when scaling or filtering the bitmap.

paint
SKPaint

The paint to use when drawing the bitmap, or null for default rendering.

Applies to

DrawBitmap(SKBitmap, SKRect, SKRect, SKPaint)

Caution

Use the overload with SKSamplingOptions instead.

Draws a bitmap on the canvas.

[System.Obsolete("Use the overload with SKSamplingOptions instead.")]
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.

Attributes

Applies to

DrawBitmap(SKBitmap, SKRect, SKSamplingOptions, SKPaint)

Draws the specified bitmap into the destination rectangle using the given sampling options.

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

Parameters

bitmap
SKBitmap

The bitmap to draw.

dest
SKRect

The destination rectangle on the canvas.

sampling
SKSamplingOptions

The sampling options to use when scaling the bitmap.

paint
SKPaint

The paint to apply, or null to use default paint settings.

Applies to

DrawBitmap(SKBitmap, Single, Single, SKPaint)

Caution

Use the overload with SKSamplingOptions instead.

Draws a bitmap on the canvas.

[System.Obsolete("Use the overload with SKSamplingOptions instead.")]
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.

Attributes

Applies to

DrawBitmap(SKBitmap, SKRect, SKRect, SKSamplingOptions, SKPaint)

Draws a portion of the specified bitmap into the destination rectangle using the given sampling options.

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

Parameters

bitmap
SKBitmap

The bitmap to draw.

source
SKRect

The source rectangle within the bitmap.

dest
SKRect

The destination rectangle on the canvas.

sampling
SKSamplingOptions

The sampling options to use when scaling the bitmap.

paint
SKPaint

The paint to apply, or null to use default paint settings.

Applies to

DrawBitmap(SKBitmap, Single, Single, SKSamplingOptions, SKPaint)

Draws a bitmap at the specified coordinates using the given sampling options and paint.

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

Parameters

bitmap
SKBitmap

The bitmap to draw.

x
Single

The x-coordinate of the left edge of the bitmap.

y
Single

The y-coordinate of the top edge of the bitmap.

sampling
SKSamplingOptions

The sampling options to apply when scaling or filtering the bitmap.

paint
SKPaint

The paint to use when drawing the bitmap, or null for default rendering.

Applies to