1
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
4
<meta http-equiv='Content-Type' content='text/html; charset=us-ascii' />
5
<title>The PIL.ImageGrab Module</title>
6
<link rel='stylesheet' href='effbot.css' type='text/css' />
9
<h1>The PIL.ImageGrab Module</h1>
10
<p>(New in 1.1.3) The <b>ImageGrab</b> module can be used to copy
11
the contents of the screen to a PIL image memory.
13
The current version works on Windows only.</p>
15
<h2>Module Contents</h2>
17
<dt><a id='PIL.ImageGrab.grab-function' name='PIL.ImageGrab.grab-function'><b>grab(bbox=None)</b></a> [<a href='#PIL.ImageGrab.grab-function'>#</a>]</dt>
19
<p>(New in 1.1.3) Take a snapshot of the screen. The pixels inside the
20
bounding box are returned as an "RGB" image. If the bounding box is
21
omitted, the entire screen is copied.</p>
25
What region to copy. Default is the entire screen.</dd>
31
<dt><a id='PIL.ImageGrab.grabclipboard-function' name='PIL.ImageGrab.grabclipboard-function'><b>grabclipboard()</b></a> [<a href='#PIL.ImageGrab.grabclipboard-function'>#</a>]</dt>
33
<p>(New in 1.1.4) Take a snapshot of the clipboard image, if any.</p>
37
An image, a list of filenames, or None if the clipboard does
38
not contain image data or filenames. Note that if a list is
39
returned, the filenames may not represent image files.</dd>
1
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
4
<meta http-equiv='Content-Type' content='text/html; charset=us-ascii' />
5
<title>The PIL.ImageGrab Module</title>
6
<link rel='stylesheet' href='effbot.css' type='text/css' />
9
<h1>The PIL.ImageGrab Module</h1>
10
<p>(New in 1.1.3) The <b>ImageGrab</b> module can be used to copy
11
the contents of the screen to a PIL image memory.
13
The current version works on Windows only.</p>
15
<h2>Module Contents</h2>
17
<dt><a id='PIL.ImageGrab.grab-function' name='PIL.ImageGrab.grab-function'><b>grab(bbox=None)</b></a> [<a href='#PIL.ImageGrab.grab-function'>#</a>]</dt>
28
<dt><a id='PIL.ImageGrab.grabclipboard-function' name='PIL.ImageGrab.grabclipboard-function'><b>grabclipboard()</b></a> [<a href='#PIL.ImageGrab.grabclipboard-function'>#</a>]</dt>