ComponentOne Bitmap for WinForms
C1.Win.C1DX.4.8 Assembly / C1.Util.DX.DXGI Namespace / Surface Class / FromSwapChain Method
The swap chain to get the buffer from.
The index of the desired buffer.

In This Topic
    FromSwapChain Method (Surface)
    In This Topic
    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