GetDIBits function Null safety gdi32
- int hdc,
- int hbm,
- int start,
- int cLines,
- Pointer<
NativeType> lpvBits, - Pointer<
BITMAPINFO> lpbmi, - 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);
}