SKSurface.Draw 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
| Name | Description |
|---|---|
| Draw(SKCanvas, SKPoint, SKSamplingOptions, SKPaint) |
Draws the surface onto the specified canvas at the given location using the specified sampling options and paint. |
| Draw(SKCanvas, Single, Single, SKPaint) |
Draws this surface onto the specified canvas at the given position. |
| Draw(SKCanvas, Single, Single, SKSamplingOptions, SKPaint) |
Draws this surface onto the specified canvas at the given position. |
Draw(SKCanvas, SKPoint, SKSamplingOptions, SKPaint)
Draws the surface onto the specified canvas at the given location using the specified sampling options and paint.
public void Draw(SkiaSharp.SKCanvas canvas, SkiaSharp.SKPoint p, SkiaSharp.SKSamplingOptions sampling, SkiaSharp.SKPaint paint = default);
Parameters
- canvas
- SKCanvas
The canvas onto which to draw the surface.
- p
- SKPoint
The location at which to draw the upper-left corner of the surface.
- sampling
- SKSamplingOptions
The sampling options to apply when scaling or filtering the surface.
- paint
- SKPaint
The paint to use when drawing the surface, or null for default rendering.
Applies to
Draw(SKCanvas, Single, Single, SKPaint)
Draws this surface onto the specified canvas at the given position.
public void Draw(SkiaSharp.SKCanvas canvas, float x, float y, SkiaSharp.SKPaint paint);
Parameters
- canvas
- SKCanvas
The canvas onto which this surface is drawn.
- x
- Single
The x-coordinate of the destination position.
- y
- Single
The y-coordinate of the destination position.
- paint
- SKPaint
The paint to apply when drawing, or null to use default paint settings.
Applies to
Draw(SKCanvas, Single, Single, SKSamplingOptions, SKPaint)
Draws this surface onto the specified canvas at the given position.
public void Draw(SkiaSharp.SKCanvas canvas, float x, float y, SkiaSharp.SKSamplingOptions sampling, SkiaSharp.SKPaint paint = default);
Parameters
- canvas
- SKCanvas
The canvas onto which this surface is drawn.
- x
- Single
The x-coordinate of the destination position.
- y
- Single
The y-coordinate of the destination position.
- sampling
- SKSamplingOptions
The sampling options to use when drawing.
- paint
- SKPaint
The paint to apply when drawing, or null to use default paint settings.