SKGLLayer 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 CoreAnimation OpenGL layer that can be drawn on using SkiaSharp drawing commands.
public class SKGLLayer : CoreAnimation.CAEAGLLayer
- Inheritance
-
SKGLLayer
Constructors
| Name | Description |
|---|---|
| SKGLLayer() |
Initializes a new instance of the SKGLLayer class. |
Properties
| Name | Description |
|---|---|
| CanvasSize |
Gets the current canvas size. |
| Frame |
Gets or sets the layer's frame rectangle. |
| GRContext |
Gets the current GPU context. |
Methods
| Name | Description |
|---|---|
| Dispose(Boolean) |
Releases the unmanaged resources used by the SKGLLayer and optionally releases the managed resources. |
| OnPaintSurface(SKPaintGLSurfaceEventArgs) |
Implement this to draw on the canvas. |
| Render() |
Redraws the layer's contents. |
Events
| Name | Description |
|---|---|
| PaintSurface |
Occurs when the canvas needs to be redrawn. |