Imager release history. Older releases can be found in Changes.old
+ - document the return value of the filter() method.
+ https://rt.cpan.org/Ticket/Display.html?id=72369
+
- properly increment the Imager::Matrix2d $VERSION.
- actually include the Imager::Test tests in the dist
=back
+Returns the invocant (C<$self>) on success, returns a false value on
+failure. You can call C<< $self->errstr >> to determine the cause of
+the failure.
+
+ $self->filter(type => $type, ...)
+ or die $self->errstr;
+
=back
=head2 Types of Filters
The function you supply must modify the image in place.
+To indicate an error, die with an error message followed by a
+newline. C<filter()> will store the error message as the C<errstr()>
+for the invocant and return false to indicate failure.
+
+ sub my_filter {
+ my %opts = @_;
+ _is_valid($opts{myparam})
+ or die "myparam invalid!\n";
+
+ # actually do the filtering...
+ }
+
=back
See L<Imager::Filter::Mandelbrot> for an example.