Class Viewport
Viewport for capturing screenshot.
public sealed record Viewport : IEquatable<Viewport>
- Inheritance
-
Viewport
- Implements
- Inherited Members
Constructors
Viewport(double, double, double, double, double)
Viewport for capturing screenshot.
public Viewport(double X, double Y, double Width, double Height, double Scale)
Parameters
XdoubleX offset in device independent pixels (dip).
YdoubleY offset in device independent pixels (dip).
WidthdoubleRectangle width in device independent pixels (dip).
HeightdoubleRectangle height in device independent pixels (dip).
ScaledoublePage scale factor.
Properties
Height
Rectangle height in device independent pixels (dip).
public double Height { get; init; }
Property Value
Scale
Page scale factor.
public double Scale { get; init; }
Property Value
Width
Rectangle width in device independent pixels (dip).
public double Width { get; init; }
Property Value
X
X offset in device independent pixels (dip).
public double X { get; init; }
Property Value
Y
Y offset in device independent pixels (dip).
public double Y { get; init; }