CreateDIBSection function gdi32

int CreateDIBSection(
  1. int hdc,
  2. Pointer<BITMAPINFO> pbmi,
  3. int usage,
  4. Pointer<Pointer<NativeType>> ppvBits,
  5. int hSection,
  6. int offset
)

The CreateDIBSection function creates a DIB that applications can write to directly. The function gives you a pointer to the location of the bitmap bit values. You can supply a handle to a file-mapping object that the function will use to create the bitmap, or you can let the system allocate the memory for the bitmap.

HBITMAP CreateDIBSection(
  HDC              hdc,
  const BITMAPINFO *pbmi,
  UINT             usage,
  VOID             **ppvBits,
  HANDLE           hSection,
  DWORD            offset);

Implementation

int CreateDIBSection(int hdc, Pointer<BITMAPINFO> pbmi, int usage,
        Pointer<Pointer> ppvBits, int hSection, int offset) =>
    _CreateDIBSection(hdc, pbmi, usage, ppvBits, hSection, offset);