Sdílet prostřednictvím


PresentationParameters.BackBufferWidth Property

Gets or sets a value indicating the width of the new swap chain's back buffer.

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

Syntax

public int BackBufferWidth { get; set; }

Property Value

The width of the back buffer, in pixels.

Remarks

If IsFullScreen is true, BackBufferHeight and BackBufferWidth must equal the width and height of one of the enumerated display modes found through SupportedDisplayModes. If IsFullScreen is false and either of these values is zero, the corresponding dimension of the client area of the DeviceWindowHandle (or the focus window, if DeviceWindowHandle is Zero) is taken.

See Also

Concepts

Displays, Client Bounds, Viewports, and Back Buffers

Tasks

How to: Restrict Graphics Devices to Widescreen Aspect Ratios in Full Screen

Reference

PresentationParameters Class
PresentationParameters Members
Microsoft.Xna.Framework.Graphics Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista