mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-12 02:06:18 +03:00
Merge pull request #7688 from radarhere/macos_imagegrab
This commit is contained in:
commit
27eacddfd5
|
@ -11,9 +11,9 @@ or the clipboard to a PIL image memory.
|
||||||
|
|
||||||
.. py:function:: grab(bbox=None, include_layered_windows=False, all_screens=False, xdisplay=None)
|
.. py:function:: grab(bbox=None, include_layered_windows=False, all_screens=False, xdisplay=None)
|
||||||
|
|
||||||
Take a snapshot of the screen. The pixels inside the bounding box are
|
Take a snapshot of the screen. The pixels inside the bounding box are returned as
|
||||||
returned as an "RGBA" on macOS, or an "RGB" image otherwise.
|
an "RGBA" on macOS, or an "RGB" image otherwise. If the bounding box is omitted,
|
||||||
If the bounding box is omitted, the entire screen is copied.
|
the entire screen is copied, and on macOS, it will be at 2x if on a Retina screen.
|
||||||
|
|
||||||
On Linux, if ``xdisplay`` is ``None`` and the default X11 display does not return
|
On Linux, if ``xdisplay`` is ``None`` and the default X11 display does not return
|
||||||
a snapshot of the screen, ``gnome-screenshot`` will be used as fallback if it is
|
a snapshot of the screen, ``gnome-screenshot`` will be used as fallback if it is
|
||||||
|
|
Loading…
Reference in New Issue
Block a user