Document Solutions for PDF
GrapeCity.Documents.DX.Windows Assembly / GrapeCity.Documents.DX.Direct2D Namespace / Bitmap Class / New<T> Method
an instance of RenderTarget
The dimension of the bitmap to create in pixels.
A pointer to an array of pixel data. The size of the array must be equal to sizeof(pixel) * Size.Width * Height.
The pixel format and dots per inch (DPI) of the bitmap to create.

In This Topic
    New<T> Method
    In This Topic
    Creates a Direct2D bitmap from a pointer to in-memory source data.
    Syntax
    'Declaration
     
    Public Shared Function New(Of T As {New, Struct})( _
       ByVal renderTarget As RenderTarget, _
       ByVal size As Size2L, _
       ByVal pixelDatas() As T, _
       ByVal bitmapProperties As BitmapProperties _
    ) As Bitmap
    public static Bitmap New<T>( 
       RenderTarget renderTarget,
       Size2L size,
       T[] pixelDatas,
       BitmapProperties bitmapProperties
    )
    where T: new(), struct

    Parameters

    renderTarget
    an instance of RenderTarget
    size
    The dimension of the bitmap to create in pixels.
    pixelDatas
    A pointer to an array of pixel data. The size of the array must be equal to sizeof(pixel) * Size.Width * Height.
    bitmapProperties
    The pixel format and dots per inch (DPI) of the bitmap to create.

    Type Parameters

    T
    See Also