StretchBlt function Null safety gdi32
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);
}