Velaptor.Hardware.SystemDisplay
Velaptor
Velaptor.Hardware
SystemDisplay Struct
Holds information about a single display in the system.
public readonly struct SystemDisplay :
System.IEquatable<Velaptor.Hardware.SystemDisplay>
Implements System.IEquatable<SystemDisplay>
Constructors
SystemDisplay() Constructor
Initializes a new instance of the SystemDisplay class.
public SystemDisplay();
Properties
BlueBitDepth
Gets the bit depth of the blue color channel in the current video mode.
public int BlueBitDepth { get; set; }
Property Value
Center
Gets the center location of the display.
public System.Numerics.Vector2 Center { get; }
Property Value
GreenBitDepth
Gets the bit depth of the green color channel in the current video mode.
public int GreenBitDepth { get; set; }
Property Value
Height
Gets the height in screen coordinates in the current video mode.
public int Height { get; set; }
Property Value
HorizontalDPI
Gets the approximate dpi of the display on the horizontal axis.
public float HorizontalDPI { get; }
Property Value
HorizontalScale
Gets the scale of the display on the horizontal axis.
public float HorizontalScale { get; set; }
Property Value
Remarks
If the display was set to a scale of 150%, this value of 1.5 should be used.
IsMain
Gets a value indicating whether the display is the primary display in the system.
public bool IsMain { get; set; }
Property Value
RedBitDepth
Gets the bit depth of the red color channel in the current video mode.
public int RedBitDepth { get; set; }
Property Value
RefreshRate
Gets the refresh rate in Hz in the current video mode.
public int RefreshRate { get; set; }
Property Value
VerticalDPI
Gets the approximate dpi of the display on the vertical axis.
public float VerticalDPI { get; }
Property Value
VerticalScale
Gets the scale of the display on the vertical axis.
public float VerticalScale { get; set; }
Property Value
Remarks
If the display was set to a scale of 150%, this value of 1.5 should be used.
Width
Gets the width in screen coordinates in the current video mode.
public int Width { get; set; }