Edit

SKCanvasLayer Class

Definition

A CoreAnimation layer that can be drawn on using SkiaSharp drawing commands.

public class SKCanvasLayer : CoreAnimation.CALayer
Inheritance
SKCanvasLayer

Constructors

Name Description
SKCanvasLayer()

Initializes a new instance of the SKCanvasLayer class.

Properties

Name Description
CanvasSize

Gets the current canvas size.

IgnorePixelScaling

Gets or sets a value indicating whether the drawing canvas should be resized on high resolution displays.

Methods

Name Description
Dispose(Boolean)

Releases the unmanaged resources used by the SKCanvasLayer and optionally releases the managed resources.

DrawInContext(CGContext)

Draws the layer on the specified context.

OnPaintSurface(SKPaintSurfaceEventArgs)

Implement this to draw on the canvas.

Events

Name Description
PaintSurface

Occurs when the canvas needs to be redrawn.

Applies to