CreateCompatibleBitmap function Null safety gdi32

int CreateCompatibleBitmap (
  1. int hdc,
  2. int cx,
  3. int cy
)

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);
}