SKGLControl Class

Definition

A hardware-accelerated control that can be drawn on using SkiaSharp drawing commands.

public class SKGLControl : OpenTK.GLControl
Inheritance
OpenTK.GLControl
SKGLControl

Constructors

SKGLControl()

Creates a new instance of the SKGLControl view.

SKGLControl(GraphicsMode)

Creates a new instance of the SKGLControl view.

SKGLControl(GraphicsMode, Int32, Int32, GraphicsContextFlags)

Creates a new instance of the SKGLControl view.

Properties

CanvasSize

Gets the current canvas size.

GRContext

Gets the current GPU context.

Methods

Dispose(Boolean)

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

OnPaint(PaintEventArgs)

Raises the Paint event.

OnPaintSurface(SKPaintGLSurfaceEventArgs)

Implement this to draw on the canvas.

Events

PaintSurface

Occurs when the surface needs to be redrawn.

Applies to