CreateBitmap function gdi32

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

The CreateBitmap function creates a bitmap with the specified width, height, and color format (color planes and bits-per-pixel).

HBITMAP CreateBitmap(
  [in] int        nWidth,
  [in] int        nHeight,
  [in] UINT       nPlanes,
  [in] UINT       nBitCount,
  [in] const VOID *lpBits
);

Implementation

int CreateBitmap(
  int nWidth,
  int nHeight,
  int nPlanes,
  int nBitCount,
  Pointer lpBits,
) => _CreateBitmap(nWidth, nHeight, nPlanes, nBitCount, lpBits);