9 lines
183 B
Python
9 lines
183 B
Python
"Grab the part of the screen"
|
|
import pyscreenshot as ImageGrab
|
|
|
|
# part of the screen
|
|
im = ImageGrab.grab(bbox=(10, 10, 510, 510)) # X1,Y1,X2,Y2
|
|
|
|
# save image file
|
|
im.save("box.png")
|