Microsoft DirectX 9.0 SDK Update (October 2004)

SwapChain.GetFrontBufferData Method

Language:

Note: This documentation is preliminary and is subject to change.

Generates a copy of the swap chain's front buffer and places it in a Surface object provided by the application.

Definition

Visual Basic .NET Public Sub GetFrontBufferData( _
    ByVal frontBuffer As Surface _
)
C# public void GetFrontBufferData(
    Surface frontBuffer
);
Managed C++ public: void GetFrontBufferData(
    Surface *frontBuffer
);
JScript .NET public function GetFrontBufferData(
    frontBuffer : Surface
);

Parameters

frontBuffer Microsoft.DirectX.Direct3D.Surface. [in, out] A Surface object that receives a copy of the swap chain's front buffer. The data is returned in successive rows with no intervening space, from the vertically highest row to the lowest.

Remarks

For windowed mode, the size of the destination surface should be the size of the desktop. For full-screen mode, the size of the destination surface should be the screen size.

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


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center