The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

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');

METHODS

new

    my $image = SpriteBuilder::ImageDriver::<driver>->new();

Creates a new blank image.

driver

Returns a driver name (ImageMagick, GD or undef).

width

Returns a width of image.

height

Returns a height of image.

is_blank

Returns '1' when image is blank.

reset([<image>])

Make a blank image. When image parameter is specified than assign the initial value as image.

set_transparent_color(<color>)

$image->set_transparent_color('white');

Set transparent color.

set_quality(<0..100>)

Set image qualit (for JPEG only).

read(<filename>)

Reads an image from a file.

write(<filename>)

Writes the image to a file.

extent(<width>, <height>)

Extent image to width x height.

composite(<image>, <x>, <y>)

Composite image, specified by image parameter, onto source image.

12 POD Errors

The following errors were encountered while parsing the POD:

Around line 25:

=back without =over

Around line 31:

=back without =over

Around line 37:

=back without =over

Around line 43:

=back without =over

Around line 49:

=back without =over

Around line 56:

=back without =over

Around line 64:

=back without =over

Around line 70:

=back without =over

Around line 76:

=back without =over

Around line 82:

=back without =over

Around line 88:

=back without =over

Around line 94:

=back without =over