[Image-SIG] [PATCH] Make Win32 ImageGrab work with multiple monitors

Catalin Patulea cat at vv.carleton.ca
Mon Jun 16 07:46:27 CEST 2008


Hi Image-SIG,

PIL very nicely supports taking screen shots in Win32. Unfortunately,
for a user with multiple monitors such as myself, only the primary
monitor is captured.

The attached patch, against 1.1.6, makes ImageGrab capture the entire
virtual screen, spanning all enabled monitors.

I have tested this with two (differently-sized) monitors.

Thanks,

Catalin Patulea
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Imaging-1.1.6-vres.diff
Type: text/x-diff
Size: 1350 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/image-sig/attachments/20080616/50e0125e/attachment.diff>


More information about the Image-SIG mailing list