This commit is contained in:
恍兮惚兮 2024-05-26 23:17:28 +08:00
parent 1926586d0f
commit f12c6fff88

View File

@ -92,6 +92,10 @@ def imageCut(hwnd, x1, y1, x2, y2, viscompare=True, rawimage=False) -> QImage:
desktop.width(),
desktop.height(),
)
x1 = x1 - desktop.x()
y1 = y1 - desktop.y()
x2 = x2 - desktop.x()
y2 = y2 - desktop.y()
pix = pix.copy(x1, y1, x2 - x1, y2 - y1)
else:
pix = screen.grabWindow(