Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    DisplayMode Class

    Namespace: Stride.Graphics
    Assembly: Stride.Graphics.dll

    Describes the display mode.

    System.Object → DisplayMode
    Derived from DisplayMode:

    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.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    Properties


    AspectRatio

    Gets the aspect ratio used by the graphics device.

    public float AspectRatio { get; }
    Property Value
    Type Description
    System.Single
    | Improve this Doc View Source

    Methods


    ToString()

    Retrieves a string representation of this object.

    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    System.Object.ToString()

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation