Imager::Filter::RoundedCorner - Make nifty images with Imager |
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:
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.
Imager::Filter::RoundedCorner - Make nifty images with Imager |