3 using System.Globalization;
5 namespace SiliconStudio.
Paradox.Graphics
24 RefreshRate = refreshRate;
30 public float AspectRatio
34 if ((Height != 0) && (Width != 0))
36 return ((
float)Width) / Height;
68 return string.Format(CultureInfo.InvariantCulture,
"[Width:{0} Height:{1} Format:{2} AspectRatio:{3}]", Width, Height, Format, AspectRatio);
override string ToString()
Retrieves a string representation of this object.
readonly Rational RefreshRate
Gets a value indicating the refresh rate
Describes the display mode.
readonly int Width
Gets a value indicating the screen width, in pixels.
DisplayMode(PixelFormat format, int width, int height, Rational refreshRate)
Initializes a new instance of the DisplayMode class.
readonly PixelFormat Format
Gets a value indicating the surface format of the display mode.
_In_ size_t _In_ size_t _In_ DXGI_FORMAT format
readonly int Height
Gets a value indicating the screen height, in pixels.
PixelFormat
Defines various types of pixel formats.