C# 클래스 OpenTK.DisplayResolution

Contains information regarding a monitor's display resolution.
파일 보기 프로젝트 열기: prepare/HTML-Renderer 1 사용 예제들

Private Properties

프로퍼티 타입 설명
DisplayResolution System

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
DisplayResolution ( ) : System

메소드 상세

DisplayResolution() 공개 메소드

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
리턴 System

DisplayResolution() 공개 메소드

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
리턴 System

Equals() 공개 메소드

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

GetHashCode() 공개 메소드

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

ToString() 공개 메소드

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

operator() 공개 정적인 메소드

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