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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈