ComponentOne Bitmap for WPF
C1.WPF.DX.4.6.2 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 Integer, _
       ByVal height As Integer, _
       ByVal pixelFormat As Guid, _
       ByVal pixelDatas() As T, _
       Optional ByVal stride As Integer _
    ) As Bitmap
    public static Bitmap New<T>( 
       ImagingFactory factory,
       int width,
       int height,
       Guid pixelFormat,
       T[] pixelDatas,
       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