++ed by:

1 non-PAUSE user.

Adam Kennedy

NAME

Imager::Search::Pattern - Search object for an image

SYNOPSIS

  my $pattern = Imager::Search::Pattern->new(
          driver => 'Imager::Search::Driver::HTML24',
          image  => $Imager,
  );
  
  my $regexp = $pattern->regexp;

DESCRIPTION

Imager::Search::Pattern takes an Imager object, and converts it into a partially-compiled regular expression.

This partial regexp can then be quickly turned into the final Regexp once the widget of the target image is known, as well as being able to be cached.

This allows a single Imager::Search::Pattern object to be quickly applied to many different sizes of target images.

METHODS

new

  $pattern = Imager::Search::Pattern->new(
      driver => 'Imager::Search::Driver::HTML24',
      file   => 'search/image.gif',
      cache  => 1,
  );

SUPPORT

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

AUTHOR

Adam Kennedy <adamk@cpan.org>

COPYRIGHT

Copyright 2007 - 2011 Adam Kennedy.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

The full text of the license can be found in the LICENSE file included with this module.