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
피드백
https://aka.ms/ContentUserFeedback을 참조하세요.
출시 예정: 2024년 내내 콘텐츠 피드백 메커니즘인 GitHub 문제를 단계적으로 폐지하고 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은다음에 대한 사용자 의견 제출 및 보기