StretchBlt function Null safety gdi32

int StretchBlt(
  1. int hdcDest,
  2. int xDest,
  3. int yDest,
  4. int wDest,
  5. int hDest,
  6. int hdcSrc,
  7. int xSrc,
  8. int ySrc,
  9. int wSrc,
  10. int hSrc,
  11. int rop
)

The StretchBlt function copies a bitmap from a source rectangle into a destination rectangle, stretching or compressing the bitmap to fit the dimensions of the destination rectangle, if necessary. The system stretches or compresses the bitmap according to the stretching mode currently set in the destination device context.

BOOL StretchBlt(
  HDC   hdcDest,
  int   xDest,
  int   yDest,
  int   wDest,
  int   hDest,
  HDC   hdcSrc,
  int   xSrc,
  int   ySrc,
  int   wSrc,
  int   hSrc,
  DWORD rop
);

Implementation

int StretchBlt(int hdcDest, int xDest, int yDest, int wDest, int hDest,
    int hdcSrc, int xSrc, int ySrc, int wSrc, int hSrc, int rop) {
  final _StretchBlt = _gdi32.lookupFunction<
      Int32 Function(
          IntPtr hdcDest,
          Int32 xDest,
          Int32 yDest,
          Int32 wDest,
          Int32 hDest,
          IntPtr hdcSrc,
          Int32 xSrc,
          Int32 ySrc,
          Int32 wSrc,
          Int32 hSrc,
          Uint32 rop),
      int Function(
          int hdcDest,
          int xDest,
          int yDest,
          int wDest,
          int hDest,
          int hdcSrc,
          int xSrc,
          int ySrc,
          int wSrc,
          int hSrc,
          int rop)>('StretchBlt');
  return _StretchBlt(
      hdcDest, xDest, yDest, wDest, hDest, hdcSrc, xSrc, ySrc, wSrc, hSrc, rop);
}