[]
        
(Showing Draft Content)

C1.Util.DX.Direct2D.Bitmap.New

New Method

New<T>(RenderTarget, Size2L, T[], BitmapProperties)

Creates a Direct2D bitmap from a pointer to in-memory source data.

Declaration
public static Bitmap New<T>(RenderTarget renderTarget, Size2L size, T[] pixelDatas, BitmapProperties bitmapProperties) where T : struct
Public Shared Function [New](Of T As Structure)(renderTarget As RenderTarget, size As Size2L, pixelDatas As T(), bitmapProperties As BitmapProperties) As Bitmap
Parameters
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.

Returns
Type Description
Bitmap
Type Parameters
Name Description
T