Struct SurfaceRequest
Namespace: VelloSharp.Avalonia.Core.Surface
Assembly: VelloSharp.Avalonia.Core.dll
Describes the parameters required to prepare a render surface for a frame.
public readonly record struct SurfaceRequest : IEquatable<SurfaceRequest>
Implements
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
SurfaceRequest(PixelSize, double, object)
Describes the parameters required to prepare a render surface for a frame.
public SurfaceRequest(PixelSize PixelSize, double RenderScaling, object PlatformSurface)
Parameters
PixelSize PixelSize
Desired pixel size of the surface.
RenderScaling double
Effective render scaling (DPI multiplier).
PlatformSurface object
Platform-specific surface reference, such as an Avalonia INativePlatformHandleSurface.
Properties
PixelSize
Desired pixel size of the surface.
public PixelSize PixelSize { get; init; }
Property Value
PixelSize
PlatformSurface
Platform-specific surface reference, such as an Avalonia INativePlatformHandleSurface.
public object PlatformSurface { get; init; }
Property Value
RenderScaling
Effective render scaling (DPI multiplier).
public double RenderScaling { get; init; }