SKGLControl Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A hardware-accelerated control that can be drawn on using SkiaSharp drawing commands.
public class SKGLControl : OpenTK.GLControl
- Inheritance
-
OpenTK.GLControlSKGLControl
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. |