drawImage method
Paint operation: draws hBitmap
at coordinates x
, y
.
Implementation
void drawImage(int hdc, int hBitmap, int x, int y, int width, int height) {
final hMemDC = CreateCompatibleDC(hdc);
SelectObject(hMemDC, hBitmap);
BitBlt(hdc, x, y, width, height, hMemDC, 0, 0, ROP_CODE.SRCCOPY);
DeleteObject(hMemDC);
}