Edit

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

Name Description
SKGLControl()

Initializes a new instance of the SKGLControl class.

SKGLControl(GraphicsMode, Int32, Int32, GraphicsContextFlags)

Initializes a new instance of the SKGLControl class with the specified graphics mode, OpenGL version, and context flags.

SKGLControl(GraphicsMode)

Initializes a new instance of the SKGLControl class with the specified graphics mode.

Properties

Name Description
CanvasSize

Gets the current canvas size.

GRContext

Gets the current GPU context.

Methods

Name Description
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

Name Description
PaintSurface

Occurs when the surface needs to be redrawn.

Applies to