Condividi tramite


Device.GetBackBuffer Method

Gets the specified back buffer.

Namespace: Microsoft.WindowsMobile.DirectX.Direct3D
Assembly: Microsoft.WindowsMobile.DirectX (in microsoft.windowsmobile.directx.dll)

Syntax

'Declaration
Public Function GetBackBuffer ( _
    backBuffer As Integer, _
    backBufferType As BackBufferType _
) As Surface
'Usage
Dim instance As Device
Dim backBuffer As Integer
Dim backBufferType As BackBufferType
Dim returnValue As Surface

returnValue = instance.GetBackBuffer(backBuffer, backBufferType)
public Surface GetBackBuffer (
    int backBuffer,
    BackBufferType backBufferType
)
public:
Surface^ GetBackBuffer (
    int backBuffer, 
    BackBufferType backBufferType
)
public Surface GetBackBuffer (
    int backBuffer, 
    BackBufferType backBufferType
)
public function GetBackBuffer (
    backBuffer : int, 
    backBufferType : BackBufferType
) : Surface
Not applicable.

Parameters

  • backBuffer
    An index of the back buffer object to return.
  • backBufferType
    The type of the back buffer to return. The only valid value is Mono.

Return Value

A Surface that represents the returned back buffer surface.

Exceptions

Exception type Condition

InvalidCallException

The method call is invalid. For example, a method's parameter might contain an invalid value.

Remarks

Back buffers are numbered from 0 to the total number of back buffers minus 1. A value of 0 returns the first back buffer, not the front buffer. The front buffer is not accessible through this method.

Platforms

Windows CE, Windows Mobile for Pocket PC, Windows Mobile for Smartphone

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

Version Information

.NET Compact Framework

Supported in: 2.0

See Also

Reference

Device Class
Device Members
Microsoft.WindowsMobile.DirectX.Direct3D Namespace