11.. py :module :: PIL .ImageGrab
22 .. py :currentmodule :: PIL .ImageGrab
33
4- :py:mod: `ImageGrab ` Module (macOS and Windows only)
5- ===================================================
4+ :py:mod: `ImageGrab ` Module
5+ ==========================
66
77The :py:mod: `ImageGrab ` module can be used to copy the contents of the screen
88or the clipboard to a PIL image memory.
99
10- .. note :: The current version works on macOS and Windows only.
11-
1210.. versionadded :: 1.1.3
1311
1412.. py :function :: PIL .ImageGrab.grab(bbox = None , include_layered_windows = False , all_screens = False , xdisplay = None )
1513
1614 Take a snapshot of the screen. The pixels inside the bounding box are
17- returned as an "RGB" image on Windows or "RGBA" on macOS .
15+ returned as an "RGBA" on macOS, or an "RGB" image otherwise .
1816 If the bounding box is omitted, the entire screen is copied.
1917
2018 .. versionadded :: 1.1.3 (Windows), 3.0.0 (macOS), 7.1.0 (Linux (X11))
@@ -36,7 +34,7 @@ or the clipboard to a PIL image memory.
3634
3735.. py :function :: PIL .ImageGrab.grabclipboard()
3836
39- Take a snapshot of the clipboard image, if any.
37+ Take a snapshot of the clipboard image, if any. Only macOS and Windows are currently supported.
4038
4139 .. versionadded :: 1.1.4 (Windows), 3.3.0 (macOS)
4240
0 commit comments