Table of Contents

Class DisplayMode

Namespace
Stride.Graphics
Assembly
Stride.Graphics.dll

Describes the display mode.

public class DisplayMode
Inheritance
DisplayMode

Constructors

DisplayMode(PixelFormat, int, int, Rational)

Initializes a new instance of the DisplayMode class.

public DisplayMode(PixelFormat format, int width, int height, Rational refreshRate)

Parameters

format PixelFormat

The format.

width int

The width.

height int

The height.

refreshRate Rational

The refresh rate.

Fields

Format

Gets a value indicating the surface format of the display mode.

public readonly PixelFormat Format

Field Value

PixelFormat

Height

Gets a value indicating the screen height, in pixels.

public readonly int Height

Field Value

int

RefreshRate

Gets a value indicating the refresh rate

public readonly Rational RefreshRate

Field Value

Rational

Width

Gets a value indicating the screen width, in pixels.

public readonly int Width

Field Value

int

Properties

AspectRatio

Gets the aspect ratio used by the graphics device.

public float AspectRatio { get; }

Property Value

float

Methods

ToString()

Retrieves a string representation of this object.

public override string ToString()

Returns

string