DisplayMode Class
Namespace: Stride.GraphicsAssembly: Stride.Graphics.dll
Describes the display mode.
public class DisplayMode
| Name | Description | |
|---|---|---|
| Constructors | ||
| DisplayMode(PixelFormat, Int32, Int32, Rational) | Initializes a new instance of the DisplayMode class. |
|
| Fields | ||
| Format | Gets a value indicating the surface format of the display mode. |
|
| Height | Gets a value indicating the screen height, in pixels. |
|
| RefreshRate | Gets a value indicating the refresh rate |
|
| Width | Gets a value indicating the screen width, in pixels. |
|
| Properties | ||
| AspectRatio | Gets the aspect ratio used by the graphics device. |
|
| Methods | ||
| ToString() | Retrieves a string representation of this object. |
|
Constructors
DisplayMode(PixelFormat, Int32, Int32, Rational)
Initializes a new instance of the DisplayMode class.
public DisplayMode(PixelFormat format, int width, int height, Rational refreshRate)
Parameters
| Type | Name | Description |
|---|---|---|
| PixelFormat | format | The format. |
| System.Int32 | width | The width. |
| System.Int32 | height | The height. |
| Rational | refreshRate | The refresh rate. |
Fields
Format
Gets a value indicating the surface format of the display mode.
public readonly PixelFormat Format
Field Value
| Type | Description |
|---|---|
| PixelFormat |
Height
Gets a value indicating the screen height, in pixels.
public readonly int Height
Field Value
| Type | Description |
|---|---|
| System.Int32 |
RefreshRate
Gets a value indicating the refresh rate
public readonly Rational RefreshRate
Field Value
| Type | Description |
|---|---|
| Rational |
Width
Gets a value indicating the screen width, in pixels.
public readonly int Width
Field Value
| Type | Description |
|---|---|
| System.Int32 |
Properties
AspectRatio
Gets the aspect ratio used by the graphics device.
public float AspectRatio { get; }
Property Value
| Type | Description |
|---|---|
| System.Single |
Methods
ToString()
Retrieves a string representation of this object.
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String |