Table of Contents

Struct VideoMode

Namespace
Pie.Windowing
Assembly
Pie.Windowing.dll

Contains information about a monitor's current video mode.

public struct VideoMode
Inherited Members

Constructors

VideoMode(Size, int)

Create a new VideoMode from the given size and optional refresh rate.

public VideoMode(Size size, int refreshRate = -1)

Parameters

size Size

The size/resolution, in pixels, of this video mode.

refreshRate int

The refresh rate, if any.

Remarks

AspectRatio and AccurateAspectRatio will automatically be calculated.

Fields

AccurateAspectRatio

The accurate aspect ratio of this VideoMode. This value is, as the name implies, completely accurate, however may make certain resolutions (such as 1366x768) appear to have the incorrect aspect ratio to the end user.

public readonly Size AccurateAspectRatio

Field Value

Size
Contains information about a monitor's current video mode.

AspectRatio

The aspect ratio of this VideoMode. This value is a best guess, working within a certain tolerance. While not as accurate, its results may be more like what an end user may expect. For example, it labels 1366x768 as 16:9, even though the actual ratio is very slightly different.

public readonly Size AspectRatio

Field Value

Size
Contains information about a monitor's current video mode.

RefreshRate

The refresh rate, in hz, of this VideoMode.

public readonly int RefreshRate

Field Value

int
Contains information about a monitor's current video mode.

Size

The size/resolution, in pixels, of this VideoMode.

public readonly Size Size

Field Value

Size
Contains information about a monitor's current video mode.

Methods

ToString()

Returns the fully qualified type name of this instance.

public override string ToString()

Returns

string

The fully qualified type name.