Closed its0x08 closed 7 years ago
i tried it like this but the img file is not readable...
import pyscreenshot
if name == "main":
im = pyscreenshot.grab() ff= open("img.png", "wb") ff.write(im) ff.close()
Check the pillow documentation! http://pillow.readthedocs.io/en/3.2.x/reference/Image.html
You can save with: im.save()
import pyscreenshot im = pyscreenshot.grab() im.save("img.png")
Thank you!
i tried it like this but the img file is not readable...
import pyscreenshot
if name == "main":