top => 0,
right => 0,
bottom => 0,
+ monitor => 0,
@_);
my $result;
defined &_win32
or die "Win32 driver not enabled\n";
$result = _win32($opts{hwnd}, $opts{decor}, $opts{left}, $opts{top},
- $opts{right}, $opts{bottom}, $opts{display});
+ $opts{right}, $opts{bottom}, $opts{monitor});
}
elsif (defined $opts{id}) { # X11 window id
exists $opts{display} or $opts{display} = 0;
else {
$result =
defined &_win32 ? _win32(0, $opts{decor}, $opts{left}, $opts{top},
- $opts{right}, $opts{bottom}, $opts{display}) :
+ $opts{right}, $opts{bottom}, $opts{monitor}) :
defined &_darwin ? _darwin($opts{left}, $opts{top},
$opts{right}, $opts{bottom}) :
defined &_x11 ? _x11($opts{display}, 0, $opts{left}, $opts{top},
Retrieve a screeshot of the default desktop under Win32.
-=item screenshot hwnd => 0, display => -1
+=item screenshot hwnd => 0, monitor => -1
Retrieve a screenshot of all attached monitors under Win32.
regions in the bounding rectangle of all monitors that no particular
monitor covers.
-=item screenshot hwnd => 0, display => I<index>
+=item screenshot hwnd => 0, monitor => I<index>
Retrieve a screenshot from a particular monitor under Win32. A
-I<display> of zero is always treated as the primary monitor.
+I<monitor> of zero is always treated as the primary monitor.
+
+If the given monitor is not active screenshot() will fail.
=item screenshot id => I<window id>
#ifdef SS_WIN32
Imager::ImgRaw
-imss_win32(hwnd, include_decor = 0, left = 0, top = 0, right = 0, bottom = 0, display = 0)
+imss_win32(hwnd, include_decor = 0, left = 0, top = 0, right = 0, bottom = 0, monitor = 0)
SSHWND hwnd
int include_decor
int left
int top
int right
int bottom
- int display
+ int monitor
#endif