Edit

Share via


SKCanvasView Class

Definition

A UIKit view that can be drawn on using SkiaSharp drawing commands.

[Foundation.Register("SKCanvasView")]
public class SKCanvasView : UIKit.UIView, IDisposable, System.ComponentModel.IComponent
Inheritance
SKCanvasView
Attributes
Implements

Constructors

Name Description
SKCanvasView()

Initializes a new instance of the SKCanvasView class.

SKCanvasView(CGRect)

Initializes the SKCanvasView with the specified frame.

SKCanvasView(IntPtr)

Initializes a new instance of the SKCanvasView class from a native handle.

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
AwakeFromNib()

Called after the object has been loaded from the nib file. Overriders must call the base method.

Dispose(Boolean)

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

Draw(CGRect)

Draws the view within the passed-in rectangle.

DrawInSurface(SKSurface, SKImageInfo)
Obsolete.

Implement this to draw on the canvas.

LayoutSubviews()

Lays out subviews.

OnPaintSurface(SKPaintSurfaceEventArgs)

Implement this to draw on the canvas.

WillMoveToWindow(UIWindow)

Called when the view is about to move to a window.

Events

Name Description
PaintSurface

Occurs when the canvas needs to be redrawn.

Applies to