SKCanvas.DrawBitmap Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
SkiaSharp