The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

App::MathImage::Image::Base::SVG -- SVG image file output

SYNOPSIS

 use App::MathImage::Image::Base::SVG;
 my $image = App::MathImage::Image::Base::SVG->new (-width => 100,
                                                       -height => 100);
 $image->rectangle (0,0, 99,99, 'b');
 $image->xy (20,20, 'o');
 $image->line (50,50, 70,70, 'o');
 $image->line (50,50, 70,70, 'o');
 $image->save ('/some/filename.rle');

CLASS HIERARCHY

App::MathImage::Image::Base::SVG is a subclass of Image::Base,

    Image::Base
      App::MathImage::Image::Base::SVG

DESCRIPTION

App::MathImage::Image::Base::SVG extends Image::Base to create SVG format image files.

The colour names are ...

FUNCTIONS

$image = App::MathImage::Image::Base::SVG->new (key=>value,...)

Create and return a new image object. A new image can be started with -width and -height,

    $image = App::MathImage::Image::Base::SVG->new (-width => 200, -height => 100);
$image->save ()
$image->save ($filename)

Save the image to an SVG file, either the current -file option, or set that option to $filename and save to there.

SEE ALSO

Image::Base