Edit

Share via


SKPaintGLSurfaceEventArgs Class

Definition

Provides data for the OnPaintSurface callback.

public class SKPaintGLSurfaceEventArgs : EventArgs
Inheritance
SKPaintGLSurfaceEventArgs

Remarks

This class contains the GPU-backed drawing surface and information about its size, format, and backend render target for WebGL-accelerated Blazor canvas views.

Constructors

Name Description
SKPaintGLSurfaceEventArgs(SKSurface, GRBackendRenderTarget, GRSurfaceOrigin, SKColorType)

Initializes a new instance of the SKPaintGLSurfaceEventArgs class with the specified origin and color type.

SKPaintGLSurfaceEventArgs(SKSurface, GRBackendRenderTarget, GRSurfaceOrigin, SKImageInfo, SKImageInfo)

Initializes a new instance of the SKPaintGLSurfaceEventArgs class with separate user and raw dimensions.

SKPaintGLSurfaceEventArgs(SKSurface, GRBackendRenderTarget, GRSurfaceOrigin, SKImageInfo)

Initializes a new instance of the SKPaintGLSurfaceEventArgs class with the specified origin and image info.

SKPaintGLSurfaceEventArgs(SKSurface, GRBackendRenderTarget)

Initializes a new instance of the SKPaintGLSurfaceEventArgs class.

Properties

Name Description
BackendRenderTarget

Gets the backend render target for the GPU surface.

ColorType

Gets the color type of the surface.

Info

Gets the image information describing the user-visible surface dimensions.

Origin

Gets the origin of the surface.

RawInfo

Gets the image information describing the actual physical surface dimensions.

Surface

Gets the GPU-backed surface to draw on.

Applies to