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

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.

.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

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