SKCanvasLayer Class

Definition

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

public class SKCanvasLayer : CoreAnimation.CALayer
Inheritance
SKCanvasLayer

Constructors

SKCanvasLayer()

Default constructor that initializes a new instance of SKCanvasLayer.

Properties

CanvasSize

Gets the current canvas size.

IgnorePixelScaling

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

SKDelegate
Obsolete.

Gets or sets the layer's delegate object.

Methods

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.

DrawInSurface(SKSurface, SKImageInfo)
Obsolete.

Implement this to draw on the canvas.

OnPaintSurface(SKPaintSurfaceEventArgs)

Implement this to draw on the canvas.

Events

PaintSurface

Occurs when the the canvas needs to be redrawn.

Applies to