Imager::Filter::RoundedCorner - Make nifty images with Imager
use Imager; use Imager::Filter::RoundedCorner; my $image = Imager->new; $image->read( file => 'source.jpg' ); $image->filter( type => 'rounded_corner', radius => 10, bg => '#ffffff' ); $image->write( file => 'dest.jpg' );
This filter fill image's corner with 'bg' color as rounded corner.
Filter parameters are:
corner's radius
background color
antialias flag. 1 = on (default: 0)
border width (default: 0)
border color (default: #000000)
Daisuke Murase <typester@cpan.org>
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.
To install Imager::Filter::RoundedCorner, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Imager::Filter::RoundedCorner
CPAN shell
perl -MCPAN -e shell install Imager::Filter::RoundedCorner
For more information on module installation, please visit the detailed CPAN module installation guide.