Subject: | add mathod to expand width/height of an image |
Date: | Sat, 11 Feb 2012 10:52:05 +1100 |
To: | bug-Imager [...] rt.cpan.org |
From: | tonyc [...] cpan.org |
While this is conceptually simple, it's complex enough that
reimplementing it time is wasteful.
Possible signature:
my $new = $im->expand
(
xsize => $new_width, # default to old width
ysize => $new_height, # default to old height
bg => $color # default to black
channels => $channels, # default to input depth
bits => $bits, # default to input bits
type => $type, # default to input type,
halign => 'left|centre|center|right', # default center
valign => 'top|centre|center|right', # default center
);
If $new_width <= old width && $new_height <= old height returns the
original image.
Tony