Color legend plain property method
A mode a display can be set to: its size in pixels, its refresh rate in whole hertz and its color depth.
A readonly record struct, in the namespace BorrowedTorch.Capabilities, compared by its four values. Display.Modes and Display.CurrentMode give them. The resolutions and modes page shows it in context.
Names are colored by what they are: a property or a method; values and fields keep the plain color.
Properties
BitsPerPixel →
int · The color depth, in bits a pixel: 32 for nearly every mode Windows lists today.
Height →
int · The mode’s height, in pixels.
RefreshRate →
int · How many times a second the display is drawn, in whole hertz, as Windows lists modes: 59 for a 59.94 Hz mode.
Resolution →
Resolution · Read-only. The mode’s size.
Width →
int · The mode’s width, in pixels.
Methods
DisplayMode(int, int, int, int) →
DisplayMode(int Width, int Height, int RefreshRate, int BitsPerPixel) · A mode of the given size, refresh rate and color depth.
| Parameter | Type | Description |
|---|---|---|
Width |
int |
The width, in pixels. |
Height |
int |
The height, in pixels. |
RefreshRate |
int |
The refresh rate, in whole hertz. |
BitsPerPixel |
int |
The color depth, in bits a pixel. |
ToString() →
ToString() · Returns the mode as a player reads it: 2560 × 1600, 165 Hz, 32 bits.