Imager::Search::Screenshot - An image captured from the screen


Imager-Search documentation  | view source Contained in the Imager-Search distribution.

Index


NAME

Top

Imager::Search::Screenshot - An image captured from the screen

DESCRIPTION

Top

Imager::Search::Screenshot is a Imager::Search::Image subclass that allows you to capture images from the screen.

This provides a convenient mechanism to source the target images for applications that need to (visually) monitor an existing graphical system.

METHODS

Top

new

  my $image = Imager::Search::Screenshot->new(
      [ id => 0 ],
      driver => 'BMP24',
  );

The new constructor initates a screen capture and returns the image.

In addition to params inherited from Imager::Search::Image it additionally can take as the first parameter a reference to an ARRAY.

It provided, the contents of the ARRAY are passed through to the underlying Imager::Screenshot screenshot method, which is used to do the actual image capture.

Returns a new Imager::Search::Screenshot object, or dies on error.

SUPPORT

Top

See the SUPPORT section of the main Imager::Search module.

AUTHOR

Top

Adam Kennedy <adamk@cpan.org>

COPYRIGHT

Top


Imager-Search documentation  | view source Contained in the Imager-Search distribution.