Android Guides | Samples

OpenTK.DisplayDevice Class

Defines a display device on the underlying system, and provides methods to query and change its display parameters.

See Also: DisplayDevice

Syntax

public class DisplayDevice

Requirements

Namespace: OpenTK
Assembly: OpenTK-1.0 (in OpenTK-1.0.dll)
Assembly Versions: 1.0.0.0

The members of OpenTK.DisplayDevice are listed below.

See Also: Object

Public Properties

[read-only]
static
AvailableDisplaysIList<DisplayDevice>. Gets the list of available DisplayDevice objects.
[read-only]
AvailableResolutionsIList<DisplayResolution>. Gets the list of DisplayResolution objects available on this device.
[read-only]
BitsPerPixelInt32. Gets a System.Int32 that contains number of bits per pixel of this display. Typical values include 8, 16, 24 and 32.
[read-only]
BoundsRectangle. Gets the bounds of this instance in pixel coordinates..
[read-only]
static
DefaultDisplayDevice. Gets the default (primary) display of this system.
[read-only]
HeightInt32. Gets a System.Int32 that contains the height of this display in pixels.
[read-only]
IsPrimaryBoolean. Gets a System.Boolean that indicates whether this Display is the primary Display in systems with multiple Displays.
[read-only]
RefreshRateSingle. Gets a System.Single representing the vertical refresh rate of this display.
[read-only]
WidthInt32. Gets a System.Int32 that contains the width of this display in pixels.

Public Methods

ChangeResolution(DisplayResolution)
Changes the resolution of the DisplayDevice.
ChangeResolution(Int32, Int32, Int32, Single)
Changes the resolution of the DisplayDevice.
RestoreResolution()
Restores the original resolution of the DisplayDevice.
SelectResolution(Int32, Int32, Int32, Single) : DisplayResolution
Selects an available resolution that matches the specified parameters.
override
ToString() : String
Returns a System.String representing this DisplayDevice.