SKGLView.OnPaintSurface Property
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.
Gets or sets the callback invoked when the canvas needs to be painted.
[Microsoft.AspNetCore.Components.Parameter]
public Action<SkiaSharp.Views.Blazor.SKPaintGLSurfaceEventArgs>? OnPaintSurface { get; set; }
Property Value
An action that receives SKPaintGLSurfaceEventArgs containing the surface, canvas, and GPU context information.
- Attributes
Remarks
Use this callback to perform your drawing operations. The callback is invoked when Invalidate() is called or continuously when EnableRenderLoop is true.