Closed d6e closed 10 years ago
You can always use the PIL
interface.
Pyscreenshot is only a replacement for Image.grab
Maybe I remove grab_to_file
from the Pyscreenshot interface because it doesn't make much sense.
If you want to save part of the screen to disk, do this:
import pyscreenshot as ImageGrab
im=ImageGrab.grab(bbox=(10,10,510,510)) # X1,Y1,X2,Y2
#im.show()
im.save('/tmp/grab.png')
Ah yeah, you should emphasize the save() method in your readme. That's really useful.
Pyscreenshot allows you to either take a screenshot of a part of the screen and immediately view it or take a screenshot of the entire screen and save it to disk, but you can't save a screenshot of only part of the screen to disk. Such a feature would be nice.