Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

GraphicsDeviceManager.PreferredBackBufferWidth Property

Gets or sets the preferred back-buffer width.

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

public int PreferredBackBufferWidth { get; set; }

Property Value

The preferred back-buffer width.
Exception typeCondition
ArgumentOutOfRangeException BackBufferWidth is not greater than zero.

If you request a back-buffer resolution that is not supported by the output device, the XNA framework automatically selects the highest resolution supported by the output device. For example, if a graphics back-buffer, with a resolution of 1920x1080 (e.g. 1080p or 1080i), is created and displayed on a device with 480i resolution, the back-buffer is automatically resized to 480i.

Xbox 360, Windows XP SP2, Windows Vista, Zune
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.