CreateCompatibleBitmap function Null safety gdi32
The CreateCompatibleBitmap function creates a bitmap compatible with the device that is associated with the specified device context.
HBITMAP CreateCompatibleBitmap(
HDC hdc,
int cx,
int cy
);
Implementation
int CreateCompatibleBitmap(int hdc, int cx, int cy) {
final _CreateCompatibleBitmap = _gdi32.lookupFunction<
IntPtr Function(IntPtr hdc, Int32 cx, Int32 cy),
int Function(int hdc, int cx, int cy)>('CreateCompatibleBitmap');
return _CreateCompatibleBitmap(hdc, cx, cy);
}