Android Guides | Samples

OpenTK.DisplayDevice.ChangeResolution Method

Changes the resolution of the DisplayDevice.

Syntax

public Void ChangeResolution (Int32 width, Int32 height, Int32 bitsPerPixel, Single refreshRate)

Parameters

width
The new width of the DisplayDevice.
height
The new height of the DisplayDevice.
bitsPerPixel
The new bits per pixel of the DisplayDevice.
refreshRate
The new refresh rate of the DisplayDevice.

Exceptions

TypeReason
GraphicsModeExceptionThrown if the requested resolution could not be set.

Requirements

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