ComponentOne Bitmap for WinForms
C1.Win.C1DX.4.5.2 Assembly / C1.Util.DX.Direct2D Namespace / Bitmap1 Class / Create Method / Create(DeviceContext,Surface) Method
an instance of RenderTarget
An C1.Util.DX.DXGI.Surface that contains the data to share with the new ID2D1Bitmap. For more information, see the Remarks section.

In This Topic
    Create(DeviceContext,Surface) Method
    In This Topic
    Creates an Bitmap whose data is shared with another resource.
    Syntax
    'Declaration
     
    Public Overloads Shared Function Create( _
       ByVal deviceContext As DeviceContext, _
       ByVal surface As Surface _
    ) As Bitmap1
    public static Bitmap1 Create( 
       DeviceContext deviceContext,
       Surface surface
    )

    Parameters

    deviceContext
    an instance of RenderTarget
    surface
    An C1.Util.DX.DXGI.Surface that contains the data to share with the new ID2D1Bitmap. For more information, see the Remarks section.
    See Also