Viewport.AspectRatio Property
Gets the aspect ratio used by the viewport
Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
Syntax
public float AspectRatio { get; }
Property Value
The aspect ratio of the viewport.
See Also
Reference
Viewport Structure
Viewport Members
Microsoft.Xna.Framework.Graphics Namespace
Platforms
Xbox 360, Windows XP SP2, Windows Vista, Zune