Property | Type | Description | |
---|---|---|---|
DisplayDevice | System | ||
DisplayDevice | System | ||
FindResolution |
Method | Description | |
---|---|---|
ChangeResolution ( |
Changes the resolution of the DisplayDevice. If the specified resolution is null, this function will restore the original DisplayResolution. |
|
ChangeResolution ( int width, int height, int bitsPerPixel, float refreshRate ) : void |
Changes the resolution of the DisplayDevice.
|
|
GetDisplay ( DisplayIndex index ) : |
Gets the DisplayDevice for the specified DisplayIndex.
|
|
RestoreResolution ( ) : void |
Restores the original resolution of the DisplayDevice.
|
|
SelectResolution ( int width, int height, int bitsPerPixel, float refreshRate ) : DisplayResolution |
Selects an available resolution that matches the specified parameters. If a matching resolution is not found, this function will retry ignoring the specified refresh rate, bits per pixel and resolution, in this order. If a matching resolution still doesn't exist, this function will return the current resolution. A parameter set to 0 or negative numbers will not be used in the search (e.g. if refreshRate is 0, any refresh rate will be considered valid). This function allocates memory. |
|
ToString ( ) : string |
Returns a System.String representing this DisplayDevice.
|
Method | Description | |
---|---|---|
DisplayDevice ( ) : System | ||
DisplayDevice ( |
||
FindResolution ( int width, int height, int bitsPerPixel, float refreshRate ) : |
public ChangeResolution ( |
||
resolution | The resolution to set. |
|
return | void |
public ChangeResolution ( int width, int height, int bitsPerPixel, float refreshRate ) : void | ||
width | int | The new width of the DisplayDevice. |
height | int | The new height of the DisplayDevice. |
bitsPerPixel | int | The new bits per pixel of the DisplayDevice. |
refreshRate | float | The new refresh rate of the DisplayDevice. |
return | void |
public static GetDisplay ( DisplayIndex index ) : |
||
index | DisplayIndex | The |
return |
public SelectResolution ( int width, int height, int bitsPerPixel, float refreshRate ) : DisplayResolution | ||
width | int | The width of the requested resolution in pixels. |
height | int | The height of the requested resolution in pixels. |
bitsPerPixel | int | The bits per pixel of the requested resolution. |
refreshRate | float | The refresh rate of the requested resolution in hertz. |
return | DisplayResolution |