how to capture multiple screens with ImageGrab 1

how to capture multiple screens with ImageGrab

# Using the pillow library's ImageGrab
from PIL import ImageGrab

# Use these parameters to capture all avaliable screens
image = ImageGrab.grab(bbox=None, include_layered_windows=False, all_screens=True)

# Shows an image of what it captured
image.show()

Here is what the above code is Doing:
1. Importing the ImageGrab module from the pillow library
2. Using the ImageGrab module to capture the screen
3. Showing the image of what it captured

Similar Posts