Docs / Capabilities

Glossary: Resolution

The members of Resolution, in alphabetical order.

Color legend plain property method

A display’s size in pixels, for a game’s resolution setting.

A readonly record struct, in the namespace BorrowedTorch.Capabilities, compared by its width and height. Display.Resolutions and DisplayMode.Resolution 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

AspectRatio →

float · Read-only. The width over the height: 1.78 for 16:9, 1.6 for 16:10. 0 for a height of 0.

Height →

int · The height, in pixels.

Width →

int · The width, in pixels.

Methods

Resolution(int, int) →

Resolution(int Width, int Height) · A size.

Parameter Type Description
Width int The width, in pixels.
Height int The height, in pixels.

ToString() →

ToString() · Returns the size as a player reads it: 1920 × 1080.