NAME
Image::Base::Magick -- draw images using Image Magick
SYNOPSIS
use Image::Base::Magick;
my $image = Image::Base::Magick->new (-width => 100,
-height => 100);
$image->rectangle (0,0, 99,99, 'white');
$image->xy (20,20, 'black');
$image->line (50,50, 70,70, '#FF00FF');
$image->line (50,50, 70,70, '#0000AAAA9999');
$image->save ('/some/filename.png');
CLASS HIERARCHY
Image::Base::Magick
is a subclass of Image::Base
,
Image::Base
Image::Base::Magick
DESCRIPTION
Image::Base::Magick
extends Image::Base
to create or update image files using ImageMagick through the Image::Magick
module.
FUNCTIONS
$image = Image::Base::Magick->new (key=>value,...)
-
Create and return a new image object. A new image can be started with
-width
and-height
,$image = Image::Base::Magick->new (-width => 200, -height => 100);
Or an existing file can be read,
$image = Image::Base::Magick->new (-file => '/some/filename.png');
Or a
Image::Magick
object can be given,$image = Image::Base::Magick->new (-imagemagick => $mobj);
ATTRIBUTES
-width
(integer)-height
(integer)-
Setting these changes the size of the image.
-imagemagick
-
The underlying
Image::Magick
object.
SEE ALSO
Image::Base, Image::Base::GD, Image::Base::PNGwriter, Image::Magick, Image::Xbm, Image::Xpm, Image::Pbm