C# Class OpenTK.DisplayResolution

Contains information regarding a monitor's display resolution.
Afficher le fichier Open project: prepare/HTML-Renderer Class Usage Examples

Private Properties

Свойство Type Description
DisplayResolution System

Méthodes publiques

Méthode 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

Méthode Description
DisplayResolution ( ) : System

Method Details

DisplayResolution() public méthode

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
Résultat System

DisplayResolution() public méthode

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
Résultat System

Equals() public méthode

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

GetHashCode() public méthode

Returns a unique hash representing this resolution.
public GetHashCode ( ) : int
Résultat int

ToString() public méthode

Returns a System.String representing this DisplayResolution.
public ToString ( ) : string
Résultat string

operator() public static méthode

Compares two instances for equality.
public static operator ( ) : bool
Résultat bool