NAME
App::MathImage::Image::Base::BMP -- draw BMP images using Image::BMP
SYNOPSIS
use App::MathImage::Image::Base::BMP;
my $image = App::MathImage::Image::Base::BMP->new (-width => 100,
-height => 100);
$image->rectangle (0,0, 99,99, '#FFF'); # white
$image->xy (20,20, '#000'); # black
$image->line (50,50, 70,70, '#FF00FF');
$image->line (50,50, 70,70, '#0000AAAA9999');
$image->save ('/some/filename.bmp');
CLASS HIERARCHY
App::MathImage::Image::Base::BMP is a subclass of Image::Base,
Image::Base
App::MathImage::Image::Base::BMP
DESCRIPTION
App::MathImage::Image::Base::BMP extends Image::Base to create or update image files using the Image::BMP module.
Colour Names
There's no named colours as such, only hex
#RGB
#RRGGBB
#RRRGGGBBB
#RRRRGGGGBBBB
FUNCTIONS
$image = App::MathImage::Image::Base::BMP->new (key=>value,...)-
Create and return a new image object. A new image can be started with
-widthand-height,$image = App::MathImage::Image::Base::BMP->new (-width => 200, -height => 100);Or an existing file can be read,
$image = App::MathImage::Image::Base::BMP->new (-file => '/some/filename.bmp');Or an
Image::BMPobject can be given,my $bmpobj = Image::BMP->new (20, 10); $image = App::MathImage::Image::Base::BMP->new (-imagebmp => $bmpobj); $new_image = $image->new (key=>value,...)-
There's no image clone as yet.
$image->load ()$image->load ($filename)-
Read the
-file, or set-fileto$filenameand then read. $image->save ()$image->save ($filename)-
Save to
-file, or with a$filenameargument set-filethen save to that.
ATTRIBUTES
-width(integer)-height(integer)-
The size of the image.
-imagebmp-
The underlying
Image::BMPobject.