Document Solutions for PDF
DS.Documents.DX.Windows Assembly / GrapeCity.Documents.DX.Direct2D Namespace / Bitmap Class / Create Method / Create(RenderTarget,Surface,Nullable<BitmapProperties>) Method
an instance of RenderTarget
An GrapeCity.Documents.DX.DXGI.Surface that contains the data to share with the new ID2D1Bitmap. For more information, see the Remarks section.
The pixel format and DPI of the bitmap to create . The GrapeCity.Documents.DX.DXGI.Format portion of the pixel format must match the GrapeCity.Documents.DX.DXGI.Format of data or the method will fail, but the alpha modes don't have to match. To prevent a mismatch, you can pass NULL or the value obtained from the {{D2D1::PixelFormat}} helper function. The DPI settings do not have to match those of data. If both dpiX and dpiY are 0.0f, the default DPI, 96, is used.

In This Topic
    Create(RenderTarget,Surface,Nullable<BitmapProperties>) Method
    In This Topic
    Creates an Bitmap whose data is shared with another resource.
    Syntax
    'Declaration
     
    Public Overloads Shared Function Create( _
       ByVal renderTarget As RenderTarget, _
       ByVal surface As Surface, _
       ByVal bitmapProperties As System.Nullable(Of BitmapProperties) _
    ) As Bitmap
    public static Bitmap Create( 
       RenderTarget renderTarget,
       Surface surface,
       System.Nullable<BitmapProperties> bitmapProperties
    )

    Parameters

    renderTarget
    an instance of RenderTarget
    surface
    An GrapeCity.Documents.DX.DXGI.Surface that contains the data to share with the new ID2D1Bitmap. For more information, see the Remarks section.
    bitmapProperties
    The pixel format and DPI of the bitmap to create . The GrapeCity.Documents.DX.DXGI.Format portion of the pixel format must match the GrapeCity.Documents.DX.DXGI.Format of data or the method will fail, but the alpha modes don't have to match. To prevent a mismatch, you can pass NULL or the value obtained from the {{D2D1::PixelFormat}} helper function. The DPI settings do not have to match those of data. If both dpiX and dpiY are 0.0f, the default DPI, 96, is used.
    See Also