C# Class OpenTK.DisplayResolution

Contains information regarding a monitor's display resolution.
显示文件 Open project: prepare/HTML-Renderer Class Usage Examples

Private Properties

Property Type Description
DisplayResolution System

Public Methods

Method Description
DisplayResolution ( int width, int height, int bitsPerPixel, float refreshRate, DisplayDevice device ) : System

Creates a new DisplayResolution object for the specified DisplayDevice.

OpenTK will select the closest match between all available resolutions on the specified DisplayDevice.

DisplayResolution ( int x, int y, int width, int height, int bitsPerPixel, float refreshRate ) : System
Equals ( object obj ) : bool

Determines whether the specified resolutions are equal.

GetHashCode ( ) : int

Returns a unique hash representing this resolution.

ToString ( ) : string

Returns a System.String representing this DisplayResolution.

operator ( ) : bool

Compares two instances for equality.

Private Methods

Method Description
DisplayResolution ( ) : System

Method Details

DisplayResolution() public method

Creates a new DisplayResolution object for the specified DisplayDevice.
OpenTK will select the closest match between all available resolutions on the specified DisplayDevice.
public DisplayResolution ( int width, int height, int bitsPerPixel, float refreshRate, DisplayDevice device ) : System
width int The requested width in pixels.
height int The requested height in pixels.
bitsPerPixel int The requested bits per pixel in bits.
refreshRate float The requested refresh rate in hertz.
device DisplayDevice
return System

DisplayResolution() public method

public DisplayResolution ( int x, int y, int width, int height, int bitsPerPixel, float refreshRate ) : System
x int
y int
width int
height int
bitsPerPixel int
refreshRate float
return System

Equals() public method

Determines whether the specified resolutions are equal.
public Equals ( object obj ) : bool
obj object The System.Object to check against.
return bool

GetHashCode() public method

Returns a unique hash representing this resolution.
public GetHashCode ( ) : int
return int

ToString() public method

Returns a System.String representing this DisplayResolution.
public ToString ( ) : string
return string

operator() public static method

Compares two instances for equality.
public static operator ( ) : bool
return bool