CreateBitmap function gdi32

HBITMAP CreateBitmap(
  1. int nWidth,
  2. int nHeight,
  3. int nPlanes,
  4. int nBitCount,
  5. Pointer<NativeType>? lpBits,
)

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),
);