Using Imagegrab With Bbox From Pywin32's Getwindowrect
I want to use PIL's ImageGrab to capture a specific window. What my code below does is that it uses pywin32's FindWindow to get the handle of my wanted window then get its size and
Solution 1:
Your DPI settings is at 125% and your process is not DPI aware. Call SetProcessDPIAware
as follows
import ctypes
...
ctypes.windll.user32.SetProcessDPIAware()
Post a Comment for "Using Imagegrab With Bbox From Pywin32's Getwindowrect"