GetDIBits function Null safety gdi32

int GetDIBits(
  1. int hdc,
  2. int hbm,
  3. int start,
  4. int cLines,
  5. Pointer<NativeType> lpvBits,
  6. Pointer<BITMAPINFO> lpbmi,
  7. int usage
)

The GetDIBits function retrieves the bits of the specified compatible bitmap and copies them into a buffer as a DIB using the specified format.

int GetDIBits(
  HDC          hdc,
  HBITMAP      hbm,
  UINT         start,
  UINT         cLines,
  LPVOID       lpvBits,
  LPBITMAPINFO lpbmi,
  UINT         usage
);

Implementation

int GetDIBits(int hdc, int hbm, int start, int cLines, Pointer lpvBits,
    Pointer<BITMAPINFO> lpbmi, int usage) {
  final _GetDIBits = _gdi32.lookupFunction<
      Int32 Function(IntPtr hdc, IntPtr hbm, Uint32 start, Uint32 cLines,
          Pointer lpvBits, Pointer<BITMAPINFO> lpbmi, Uint32 usage),
      int Function(int hdc, int hbm, int start, int cLines, Pointer lpvBits,
          Pointer<BITMAPINFO> lpbmi, int usage)>('GetDIBits');
  return _GetDIBits(hdc, hbm, start, cLines, lpvBits, lpbmi, usage);
}