ComponentOne Bitmap for WinForms
C1.Win.C1DX.4.8 Assembly / C1.Util.DX.Direct2D Namespace / Bitmap Class / Create Method / Create(RenderTarget,Size2L,DataPointer,Int32,BitmapProperties) Method
an instance of RenderTarget
The dimension of the bitmap to create in pixels.
A pointer to the memory location of the image data, or NULL to create an uninitialized bitmap.
The byte count of each scanline, which is equal to (the image width in pixels * the number of bytes per pixel) + memory padding. If srcData is NULL, this value is ignored. (Note that pitch is also sometimes called stride.)
The pixel format and dots per inch (DPI) of the bitmap to create.

In This Topic
    Create(RenderTarget,Size2L,DataPointer,Int32,BitmapProperties) Method
    In This Topic
    Creates a Direct2D bitmap from a pointer to in-memory source data.
    Syntax
    'Declaration
     
    Public Overloads Shared Function Create( _
       ByVal renderTarget As RenderTarget, _
       ByVal size As Size2L, _
       ByVal dataPointer As DataPointer, _
       ByVal pitch As System.Integer, _
       ByVal bitmapProperties As BitmapProperties _
    ) As Bitmap
    public static Bitmap Create( 
       RenderTarget renderTarget,
       Size2L size,
       DataPointer dataPointer,
       System.int pitch,
       BitmapProperties bitmapProperties
    )

    Parameters

    renderTarget
    an instance of RenderTarget
    size
    The dimension of the bitmap to create in pixels.
    dataPointer
    A pointer to the memory location of the image data, or NULL to create an uninitialized bitmap.
    pitch
    The byte count of each scanline, which is equal to (the image width in pixels * the number of bytes per pixel) + memory padding. If srcData is NULL, this value is ignored. (Note that pitch is also sometimes called stride.)
    bitmapProperties
    The pixel format and dots per inch (DPI) of the bitmap to create.
    See Also