SKCanvas.DrawPicture 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
DrawPicture(SKPicture, SKPaint) |
Draws a picture on the canvas. |
DrawPicture(SKPicture, SKMatrix, SKPaint) |
Draws a picture on the canvas. |
DrawPicture(SKPicture, SKPoint, SKPaint) |
Draws a picture on the canvas. |
DrawPicture(SKPicture, Single, Single, SKPaint) |
Draws a picture on the canvas. |
DrawPicture(SKPicture, SKPaint)
DrawPicture(SKPicture, SKMatrix, SKPaint)
Draws a picture on the canvas.
public void DrawPicture (SkiaSharp.SKPicture picture, ref SkiaSharp.SKMatrix matrix, SkiaSharp.SKPaint paint = default);
Parameters
- picture
- SKPicture
The picture to draw.
- matrix
- SKMatrix
The matrix to apply while painting.
- paint
- SKPaint
The paint to use when drawing the picture, or null
.
Remarks
This is equivalent to calling Save(), followed by
Concat(SKMatrix) with the specified matrix
,
DrawPicture(SKPicture, SKPaint)
and then Restore().
If paint is non-null, the picture is drawn into a temporary buffer, and then the paint's alpha, color filter, image filter, blend mode are applied to that buffer as it is drawn to the canvas.
Applies to
DrawPicture(SKPicture, SKPoint, SKPaint)
Draws a picture on the canvas.
public void DrawPicture (SkiaSharp.SKPicture picture, SkiaSharp.SKPoint p, SkiaSharp.SKPaint paint = default);
Parameters
- picture
- SKPicture
The picture to draw.
- p
- SKPoint
The destination coordinates for the picture.
- paint
- SKPaint
The paint to use when drawing the picture, or null
.
Applies to
DrawPicture(SKPicture, Single, Single, SKPaint)
Draws a picture on the canvas.
public void DrawPicture (SkiaSharp.SKPicture picture, float x, float y, SkiaSharp.SKPaint paint = default);
Parameters
- picture
- SKPicture
The picture to draw.
- x
- Single
The destination x-coordinate for the picture.
- y
- Single
The destination y-coordinate for the picture.
- paint
- SKPaint
The paint to use when drawing the picture, or null
.
Applies to
SkiaSharp