ComponentOne Bitmap for WPF
FromSwapChain Method (Surface)

C1.WPF.DX.4 Assembly > C1.Util.DX.DXGI Namespace > Surface Class : FromSwapChain Method
The swap chain to get the buffer from.
The index of the desired buffer.
Gets a swap chain back buffer.
Syntax
'Declaration
 
Public Shared Function FromSwapChain( _
   ByVal swapChain As SwapChain, _
   ByVal index As System.Integer _
) As Surface
public static Surface FromSwapChain( 
   SwapChain swapChain,
   System.int index
)

Parameters

swapChain
The swap chain to get the buffer from.
index
The index of the desired buffer.

Return Value

The buffer interface, or null on failure.
See Also

Reference

Surface Class
Surface Members