python-pillow / Pillow

Python Imaging Library (Fork)
https://python-pillow.org
Other
12.32k stars 2.23k forks source link

Allow HWND to be passed to ImageGrab.grab() on Windows #8516

Open radarhere opened 3 weeks ago

radarhere commented 3 weeks ago

Resolves #4415

Adds a handle argument to ImageGrab.grab() that accepts a HDC, allowing for a screenshot of a specific window, rather than the entire screen.