CurrentScreenImage

CurrentScreenImage[]

returns an image captured from all current display screens on your computer.

CurrentScreenImage[n]

returns an image captured from display screen n.

CurrentScreenImage[{{xmin,ymin},{xmax,ymax}}]

returns the specified rectangle from the image of all current display screens.

Details

  • The primary display monitor is typically numbered 1, and the image from it can be captured with CurrentScreenImage[1].
  • The list of all display screens is given by SystemInformation["Devices","ScreenInformation"].
  • CurrentScreenImage returns an image that contains a faithful representation of pixels on your display screen.
  • In the form CurrentScreenImage[{{xmin,ymin},{xmax,ymax}}], the coordinates are measured from the bottom left of the complete area of all current display screens.
  • CurrentScreenImage always shows a rectangular display area. Any pixels that lie outside the display areas for any screen are assigned a color specified by the setting for the option Background.

Examples

open allclose all

Basic Examples  (4)

Capturing a screenshot:

In[1]:=
Click for copyable input
Out[1]=

Capture an image of the main monitor:

In[1]:=
Click for copyable input
Out[1]=

Capture screenshots of all current monitors:

In[1]:=
Click for copyable input
Out[1]=

Capture a screenshot of the lower left-hand corner of the screen:

In[1]:=
Click for copyable input
Out[1]=

Options  (1)

Properties & Relations  (2)

Interactive Examples  (2)

See Also

CurrentNotebookImage  CurrentImage  Rasterize  WindowMargins  Import

Introduced in 2017
(11.2)