CreateBitmap function gdi32
Creates a bitmap with the specified width, height, and color format (color planes and bits-per-pixel).
To learn more, see learn.microsoft.com/windows/win32/api/wingdi/nf-wingdi-createbitmap.
Implementation
@pragma('vm:prefer-inline')
HBITMAP CreateBitmap(
int nWidth,
int nHeight,
int nPlanes,
int nBitCount,
Pointer? lpBits,
) => HBITMAP(
_CreateBitmap(nWidth, nHeight, nPlanes, nBitCount, lpBits ?? nullptr),
);