BitBlt function Null safety gdi32

int BitBlt (
  1. int hdc,
  2. int x,
  3. int y,
  4. int cx,
  5. int cy,
  6. int hdcSrc,
  7. int x1,
  8. int y1,
  9. int rop
)

The BitBlt function performs a bit-block transfer of the color data corresponding to a rectangle of pixels from the specified source device context into a destination device context.

BOOL BitBlt(
  HDC   hdc,
  int   x,
  int   y,
  int   cx,
  int   cy,
  HDC   hdcSrc,
  int   x1,
  int   y1,
  DWORD rop
);

Implementation

int BitBlt(int hdc, int x, int y, int cx, int cy, int hdcSrc, int x1, int y1,
    int rop) {
  final _BitBlt = _gdi32.lookupFunction<
      Int32 Function(IntPtr hdc, Int32 x, Int32 y, Int32 cx, Int32 cy,
          IntPtr hdcSrc, Int32 x1, Int32 y1, Uint32 rop),
      int Function(int hdc, int x, int y, int cx, int cy, int hdcSrc, int x1,
          int y1, int rop)>('BitBlt');
  return _BitBlt(hdc, x, y, cx, cy, hdcSrc, x1, y1, rop);
}