ponty / pyscreenshot

Python screenshot library, replacement for the Pillow ImageGrab module on Linux.
BSD 2-Clause "Simplified" License
499 stars 89 forks source link

Does this render the same resolution/pixel as a manual screenshot? #62

Closed CathyZhou0120 closed 4 years ago

CathyZhou0120 commented 5 years ago

In PIL there is a crop function which does not give the same resolution as a screenshot, just want to see if pyscreenshot will give the same resolution as a manual screenshot?

ponty commented 5 years ago

There is no crop function in pyscreenshot. Resolution should be the requested value.

# grab fullscreen
im = ImageGrab.grab()
# part of the screen
im = ImageGrab.grab(bbox=(10, 10, 510, 510))  # X1,Y1,X2,Y2