J'ai ce code ci-dessous pour imprimer une image bitmap, mais je ne veux pas imprimer la taille complète de la poignée. Est-il possible d'imprimer seulement un carré ou recadrer l'image bitmap après l'impression? J'utilise AutoIt.Comment faire pour recadrer bitmap dans AutoIt?
C'est la première fois que j'ai posté une question, s'il vous plaît pardonner toutes les erreurs.
$hDDC = _WinAPI_GetDC($hWnd)
$hBMP = _WinAPI_CreateCompatibleBitmap($hDDC, $iWidth, $iHeight)
$hCDC = _WinAPI_CreateCompatibleDC($hDDC)
_WinAPI_SelectObject($hCDC, $hBMP)
DllCall("User32.dll", "int", "PrintWindow", "hwnd", $hWnd, "hwnd", $hCDC, "int", 0)
_WinAPI_DeleteDC($hCDC)
_WinAPI_ReleaseDC($hWnd, $hDDC)
Avez-vous étudié la magie de l'image? Voir ce message: https://www.autoitscript.com/forum/topic/58361-image-editor-imagemagick/ –