ComponentOne Bitmap for WinForms
C1.Win.C1DX.4.8 Assembly / C1.Util.DX.WIC Namespace / Bitmap Class / New<T> Method
The factory.
The width.
The height.
The pixel format.
The pixel datas.
Stride of a row of pixels (number of bytes per row). By default the stride is == 0, and calculated by taking the sizeof(T) * width.

In This Topic
    New<T> Method (Bitmap)
    In This Topic
    Initializes a new instance of the Bitmap class from an array of pixel datas.
    Syntax
    'Declaration
     
    Public Shared Function New(Of T As {New, Struct})( _
       ByVal factory As ImagingFactory, _
       ByVal width As System.Integer, _
       ByVal height As System.Integer, _
       ByVal pixelFormat As System.Guid, _
       ByVal pixelDatas() As T, _
       Optional ByVal stride As System.Integer _
    ) As Bitmap
    public static Bitmap New<T>( 
       ImagingFactory factory,
       System.int width,
       System.int height,
       System.Guid pixelFormat,
       T[] pixelDatas,
       System.int stride
    )
    where T: new(), struct

    Parameters

    factory
    The factory.
    width
    The width.
    height
    The height.
    pixelFormat
    The pixel format.
    pixelDatas
    The pixel datas.
    stride
    Stride of a row of pixels (number of bytes per row). By default the stride is == 0, and calculated by taking the sizeof(T) * width.

    Type Parameters

    T
    See Also