Edit

SKCanvas.DrawSurface Method

Definition

Overloads

Name Description
DrawSurface(SKSurface, Single, Single, SKSamplingOptions, SKPaint)

Draws the specified surface onto the canvas at the given position using the given sampling options.

DrawSurface(SKSurface, Single, Single, SKPaint)

Draws a surface on the canvas.

DrawSurface(SKSurface, SKPoint, SKPaint)

Draws a surface on the canvas.

DrawSurface(SKSurface, SKPoint, SKSamplingOptions, SKPaint)

Draws the specified surface onto the canvas at the given point using the given sampling options.

DrawSurface(SKSurface, Single, Single, SKSamplingOptions, SKPaint)

Draws the specified surface onto the canvas at the given position using the given sampling options.

public void DrawSurface(SkiaSharp.SKSurface surface, float x, float y, SkiaSharp.SKSamplingOptions sampling, SkiaSharp.SKPaint paint = default);

Parameters

surface
SKSurface

The surface to draw.

x
Single

The x-coordinate of the destination position on the canvas.

y
Single

The y-coordinate of the destination position on the canvas.

sampling
SKSamplingOptions

The sampling options to use when drawing the surface.

paint
SKPaint

The paint to apply, or null to use default paint settings.

Applies to

DrawSurface(SKSurface, Single, Single, SKPaint)

Draws a surface on the canvas.

public void DrawSurface(SkiaSharp.SKSurface surface, float x, float y, SkiaSharp.SKPaint paint = default);

Parameters

surface
SKSurface

The surface to draw.

x
Single

The destination x-coordinate for the surface.

y
Single

The destination y-coordinate for the surface.

paint
SKPaint

The paint to use when drawing the surface, or null.

Applies to

DrawSurface(SKSurface, SKPoint, SKPaint)

Draws a surface on the canvas.

public void DrawSurface(SkiaSharp.SKSurface surface, SkiaSharp.SKPoint p, SkiaSharp.SKPaint paint = default);

Parameters

surface
SKSurface

The surface to draw.

p
SKPoint

The destination coordinates for the surface.

paint
SKPaint

The paint to use when drawing the surface, or null.

Applies to

DrawSurface(SKSurface, SKPoint, SKSamplingOptions, SKPaint)

Draws the specified surface onto the canvas at the given point using the given sampling options.

public void DrawSurface(SkiaSharp.SKSurface surface, SkiaSharp.SKPoint p, SkiaSharp.SKSamplingOptions sampling, SkiaSharp.SKPaint paint = default);

Parameters

surface
SKSurface

The surface to draw.

p
SKPoint

The location at which to draw the upper-left corner of the surface.

sampling
SKSamplingOptions

The sampling options to use when drawing the surface.

paint
SKPaint

The paint to apply, or null to use default paint settings.

Applies to