NAME
Image::Base::GD -- draw PNG format images
SYNOPSIS
use Image::Base::GD;
my $image = Image::Base::GD->new (-width => 100,
-height => 100);
$image->rectangle (0,0, 99,99, 'white');
$image->line (50,50, 70,70, '#FF00FF');
$image->save ('/some/filename.png');
CLASS HIERARCHY
Image::Base::GD is a subclass of Image::Base,
Image::Base
Image::Base::GD
DESCRIPTION
Image::Base::GD extends Image::Base to create or update PNG format image files using the GD module and library.
Colour names are taken from the GD::Simple color_table, plus hex "#RRGGBB". The special colour "None" means transparent. Colours are allocated when first used.
FUNCTIONS
$image = Image::Base::GD->new (key=>value,...)-
Create and return a new image object. A new image can be start with
-widthand-height,$image = Image::Base::GD->new (-width => 200, -height => 100);Or an existing file can be read,
$image = Image::Base::GD->new (-file => '/some/filename.png');Or a
GD::Imageobject can be used,$image = Image::Base::GD->new (-gd => $gdimageobject);
ATTRIBUTES
-width(integer, read-only)-height(integer, read-only)-
The size of a GD image cannot be changed once created.
-ncolours(integer, read-only)-
The number of colours allocated in the palette, or
undefon a truecolor GD (since it doesn't have a palette).This colour count is similar to the
-ncoloursofImage::Xpm. -zlib_compression(integer 0-9 or -1)-
The amount of data compression to apply when saving. The value is Zlib style 0 for no compression up to 9 for maximum effort. -1 means Zlib's default level.
-gd-
The underlying
GD::Imageobject.
SEE ALSO
Image::Base, Image::Base::PNGwriter, GD, Image::Xpm
HOME PAGE
http://user42.tuxfamily.org/image-base-gd/index.html
LICENSE
Image-Base-GD is Copyright 2010 Kevin Ryde
Image-Base-GD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.
Image-Base-GD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with Image-Base-GD. If not, see <http://www.gnu.org/licenses/>.