SKPaintSurfaceEventArgs 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 |
|---|---|
| SKPaintSurfaceEventArgs(SKSurface, SKImageInfo) |
Initializes a new instance of the SKPaintSurfaceEventArgs class. |
| SKPaintSurfaceEventArgs(SKSurface, SKImageInfo, SKImageInfo) |
Initializes a new instance of the SKPaintSurfaceEventArgs class with separate user and raw dimensions. |
SKPaintSurfaceEventArgs(SKSurface, SKImageInfo)
Initializes a new instance of the SKPaintSurfaceEventArgs class.
public SKPaintSurfaceEventArgs(SkiaSharp.SKSurface surface, SkiaSharp.SKImageInfo info);
Parameters
- surface
- SKSurface
The surface to draw on.
- info
- SKImageInfo
The image information describing the surface.
Remarks
The RawInfo property will be set to the same value as info.
Applies to
SKPaintSurfaceEventArgs(SKSurface, SKImageInfo, SKImageInfo)
Initializes a new instance of the SKPaintSurfaceEventArgs class with separate user and raw dimensions.
public SKPaintSurfaceEventArgs(SkiaSharp.SKSurface surface, SkiaSharp.SKImageInfo info, SkiaSharp.SKImageInfo rawInfo);
Parameters
- surface
- SKSurface
The surface to draw on.
- 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.