CSS::SpriteBuilder::Image::Common - Abstract class for image manipulation
head1 SYNOPSIS
my $image = SpriteBuilder::ImageDriver::<driver>->new(); $image->read('image.png'); $image->extent( $image->width() * 2, $image->height() * 2); $image->write('image2.png');
my $image = SpriteBuilder::ImageDriver::<driver>->new();
Creates a new blank image.
Returns a driver name (ImageMagick, GD or undef).
Returns a width of image.
Returns a height of image.
Returns '1' when image is blank.
Make a blank image. When image parameter is specified than assign the initial value as image.
$image->set_transparent_color('white');
Set transparent color.
Set image qualit (for JPEG only).
Reads an image from a file.
Writes the image to a file.
Extent image to width x height.
Composite image, specified by image parameter, onto source image.
12 POD Errors
The following errors were encountered while parsing the POD:
=back without =over
To install CSS::SpriteBuilder, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CSS::SpriteBuilder
CPAN shell
perl -MCPAN -e shell install CSS::SpriteBuilder
For more information on module installation, please visit the detailed CPAN module installation guide.