SKPaintGLSurfaceEventArgs Constructors
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.
Overloads
| Name | Description |
|---|---|
| SKPaintGLSurfaceEventArgs(SKSurface, GRBackendRenderTarget) |
Initializes a new instance of the SKPaintGLSurfaceEventArgs class. |
| 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) |
Initializes a new instance of the SKPaintGLSurfaceEventArgs class with the specified origin and image info. |
| SKPaintGLSurfaceEventArgs(SKSurface, GRBackendRenderTarget, GRSurfaceOrigin, SKImageInfo, SKImageInfo) |
Initializes a new instance of the SKPaintGLSurfaceEventArgs class with separate user and raw dimensions. |
SKPaintGLSurfaceEventArgs(SKSurface, GRBackendRenderTarget)
Initializes a new instance of the SKPaintGLSurfaceEventArgs class.
public SKPaintGLSurfaceEventArgs(SkiaSharp.SKSurface surface, SkiaSharp.GRBackendRenderTarget renderTarget);
Parameters
- surface
- SKSurface
The GPU-backed surface to draw on.
- renderTarget
- GRBackendRenderTarget
The backend render target.
Applies to
SKPaintGLSurfaceEventArgs(SKSurface, GRBackendRenderTarget, GRSurfaceOrigin, SKColorType)
Initializes a new instance of the SKPaintGLSurfaceEventArgs class with the specified origin and color type.
public SKPaintGLSurfaceEventArgs(SkiaSharp.SKSurface surface, SkiaSharp.GRBackendRenderTarget renderTarget, SkiaSharp.GRSurfaceOrigin origin, SkiaSharp.SKColorType colorType);
Parameters
- surface
- SKSurface
The GPU-backed surface to draw on.
- renderTarget
- GRBackendRenderTarget
The backend render target.
- origin
- GRSurfaceOrigin
The surface origin.
- colorType
- SKColorType
The color type of the surface.
Applies to
SKPaintGLSurfaceEventArgs(SKSurface, GRBackendRenderTarget, GRSurfaceOrigin, SKImageInfo)
Initializes a new instance of the SKPaintGLSurfaceEventArgs class with the specified origin and image info.
public SKPaintGLSurfaceEventArgs(SkiaSharp.SKSurface surface, SkiaSharp.GRBackendRenderTarget renderTarget, SkiaSharp.GRSurfaceOrigin origin, SkiaSharp.SKImageInfo info);
Parameters
- surface
- SKSurface
The GPU-backed surface to draw on.
- renderTarget
- GRBackendRenderTarget
The backend render target.
- origin
- GRSurfaceOrigin
The surface origin.
- info
- SKImageInfo
The image information describing the surface.
Applies to
SKPaintGLSurfaceEventArgs(SKSurface, GRBackendRenderTarget, GRSurfaceOrigin, SKImageInfo, SKImageInfo)
Initializes a new instance of the SKPaintGLSurfaceEventArgs class with separate user and raw dimensions.
public SKPaintGLSurfaceEventArgs(SkiaSharp.SKSurface surface, SkiaSharp.GRBackendRenderTarget renderTarget, SkiaSharp.GRSurfaceOrigin origin, SkiaSharp.SKImageInfo info, SkiaSharp.SKImageInfo rawInfo);
Parameters
- surface
- SKSurface
The GPU-backed surface to draw on.
- renderTarget
- GRBackendRenderTarget
The backend render target.
- origin
- GRSurfaceOrigin
The surface origin.
- info
- SKImageInfo
The image information describing the user-visible surface dimensions.
- rawInfo
- SKImageInfo
The image information describing the actual physical surface dimensions.
Remarks
Use this constructor when IgnorePixelScaling causes the user-visible dimensions to differ from the physical dimensions.