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


public class DisplayDevice


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

The members of OpenTK.DisplayDevice are listed below.

See Also: Object

Public Properties

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

Public Methods

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