App::MathImage::Image::Base::BMP -- draw BMP images using Image::BMP
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');
App::MathImage::Image::Base::BMP is a subclass of Image::Base,
App::MathImage::Image::Base::BMP
Image::Base
Image::Base App::MathImage::Image::Base::BMP
App::MathImage::Image::Base::BMP extends Image::Base to create or update image files using the Image::BMP module.
Image::BMP
There's no named colours as such, only hex
#RGB #RRGGBB #RRRGGGBBB #RRRRGGGGBBBB
$image = App::MathImage::Image::Base::BMP->new (key=>value,...)
Create and return a new image object. A new image can be started with -width and -height,
-width
-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::BMP object 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 -file to $filename and then read.
-file
$filename
$image->save ()
$image->save ($filename)
Save to -file, or with a $filename argument set -file then save to that.
The size of the image.
-imagebmp
The underlying Image::BMP object.
Image::Base, Image::BMP
To install App::MathImage, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::MathImage
CPAN shell
perl -MCPAN -e shell install App::MathImage
For more information on module installation, please visit the detailed CPAN module installation guide.