]> git.imager.perl.org - imager.git/blobdiff - lib/Imager/Transform.pm
split out the calculations of the final scale factors/sizes so you can
[imager.git] / lib / Imager / Transform.pm
index d44b20518e05016536d7e83ad0dd4fc7f5cebca2..4c43abbe1f7f2be02e4ba87f2083b576b1b847ad 100644 (file)
@@ -4,7 +4,7 @@ use Imager;
 use Imager::Expr::Assem;
 use vars qw($VERSION);
 
-$VERSION = sprintf "%d.%03d", q$Revision$=~/\d+/g;
+$VERSION = "1.004";
 
 my %funcs =
   (
@@ -500,6 +500,16 @@ depending on content.
 The list contains hashrefs, which current contain only one member,
 desc, a description of the use of the input image.
 
+=item $tran->constants
+
+Return's a list of names of constants that can be set for the
+transformation.
+
+=item $tran->constants($name, $name, ...)
+
+Returns a hashref for each named constant, which contains the default
+in key C<default> and a description in key C<desc>.
+
 =item my $out = $tran->transform(\%opts, \%constants, @imgs)
 
 Perform the image transformation.