Answers for "how to take a screenshot using pil in python"

1

python saving a screentshot with PIL

#python 3
from PIL import ImageGrab 
snapshot = ImageGrab.grab()
save_path = "C:\Users\YourUser\Desktop\MySnapshot.jpg" #dont forget to write the name and the extension of the file in the end
snapshot.save(save_path)
Posted by: Guest on August-27-2020
0

python windows take screenshot pil

import PIL.ImageGrab

im = PIL.ImageGrab.grab()
im.show()
Posted by: Guest on June-22-2020

Code answers related to "how to take a screenshot using pil in python"

Python Answers by Framework

Browse Popular Code Answers by Language