[]
Creates a Direct2D bitmap from a pointer to in-memory source data.
public static Bitmap New<T>(RenderTarget renderTarget, Size2L size, T[] pixelDatas, BitmapProperties bitmapProperties) where T : struct
Type | Name | Description |
---|---|---|
RenderTarget | renderTarget | an instance of RenderTarget |
Size2L | size | The dimension of the bitmap to create in pixels. |
T[] | pixelDatas | A pointer to an array of pixel data. The size of the array must be equal to sizeof(pixel) * Size.Width * Height. |
BitmapProperties | bitmapProperties | The pixel format and dots per inch (DPI) of the bitmap to create. |
Type | Description |
---|---|
Bitmap |
Name | Description |
---|---|
T |