Windows Dev Center

Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DisplayMode.AspectRatio Property

Gets the aspect ratio used by the graphics device.

Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

public float AspectRatio { get; }

Property Value

Aspect ratio of the viewport.

Xbox 360, Windows XP SP2, Windows Vista

Community Additions

Show:
© 2015 Microsoft