[]
        
(Showing Draft Content)

C1.Util.DX.WIC.Bitmap.New

New Method

New<T>(ImagingFactory, int, int, Guid, T[], int)

Initializes a new instance of the Bitmap class from an array of pixel datas.

Declaration
public static Bitmap New<T>(ImagingFactory factory, int width, int height, Guid pixelFormat, T[] pixelDatas, int stride = 0) where T : struct
Parameters
Type Name Description
ImagingFactory factory

The factory.

int width

The width.

int height

The height.

Guid pixelFormat

The pixel format.

T[] pixelDatas

The pixel datas.

int 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.

Returns
Type Description
Bitmap
Type Parameters
Name Description
T