Skip to content

Commit b8bc307

Browse files
authored
Merge pull request #4604 from radarhere/imagegrab
Updated ImageGrab documentation now that Linux is supported
2 parents 9f4c581 + 6669ffd commit b8bc307

2 files changed

Lines changed: 5 additions & 7 deletions

File tree

docs/reference/ImageGrab.rst

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
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

77
The :py:mod:`ImageGrab` module can be used to copy the contents of the screen
88
or 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

src/PIL/ImageGrab.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# The Python Imaging Library
33
# $Id$
44
#
5-
# screen grabber (macOS and Windows only)
5+
# screen grabber
66
#
77
# History:
88
# 2001-04-26 fl created

0 commit comments

Comments
 (0)