SharedGraphicsDeviceManager.PreferredBackBufferWidth Property
Gets or sets the preferred back-buffer width.
Syntax
'Declaration
Public Property PreferredBackBufferWidth As Integer
public int PreferredBackBufferWidth { get; set; }
public:
property int PreferredBackBufferWidth {
int get ();
void set (int value);
}
Property Value
Type: Int32
The preferred back-buffer width.
Exceptions
Exception type | Condition |
---|---|
ArgumentOutOfRangeException | BackBufferWidth is not greater than zero. |
Remarks
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 1920 x 1080 (1080p or 1080i) is created and displayed on a device with 480i resolution, the back buffer automatically is resized to 480i.
Requirements
Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
See Also
Reference
SharedGraphicsDeviceManager Class
SharedGraphicsDeviceManager Members
Microsoft.Xna.Framework Namespace
Platforms
Windows Phone