PresentParameters.BackBufferFormat Property
Retrieves or sets the format of the back buffer.
Namespace: Microsoft.WindowsMobile.DirectX.Direct3D
Assembly: Microsoft.WindowsMobile.DirectX (in microsoft.windowsmobile.directx.dll)
Syntax
'Declaration
Public Property BackBufferFormat As Format
'Usage
Dim instance As PresentParameters
Dim value As Format
value = instance.BackBufferFormat
instance.BackBufferFormat = value
public Format BackBufferFormat { get; set; }
public:
property Format BackBufferFormat {
Format get ();
void set (Format value);
}
/** @property */
public Format get_BackBufferFormat ()
/** @property */
public void set_BackBufferFormat (Format value)
public function get BackBufferFormat () : Format
public function set BackBufferFormat (value : Format)
Property Value
Format of the back buffer.
Remarks
This value must be one of the render target formats as validated by CheckDeviceType for a Manager. Use the DisplayMode of a Device to obtain the current format. For more information about formats, see Format.
While in windowed mode, you can specify an Unknown format for the BackBufferFormat. This tells the runtime to use the current display-mode format and eliminates the need to call DisplayMode for a Device.
For windowed applications, the back buffer format does not need to match the display-mode format because color conversion can be done by the hardware provided the hardware supports it. The set of possible back buffer formats is constrained, but the runtime allows any valid back buffer format to be presented to any desktop format. The device also must be operable in desktop mode, since devices typically do not operate in 8-bits-per-pixel modes.
Full-screen applications cannot perform color conversion.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see .
Platforms
Windows CE, Windows Mobile for Pocket PC, Windows Mobile for Smartphone
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.
Version Information
.NET Compact Framework
Supported in: 2.0
See Also
Reference
PresentParameters Class
PresentParameters Members
Microsoft.WindowsMobile.DirectX.Direct3D Namespace