SVG::GD

A SVG wrapper to the GD API
Download

SVG::GD Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Ronan Oger
  • Publisher web site:
  • http://search.cpan.org/~ronan/

SVG::GD Tags


SVG::GD Description

A SVG wrapper to the GD API SVG::GD is a Perl module that provides (as seamless as possible) a SVG wrapper to the GD API in order to provide SVG output of images generate with the Perl GD moduleSYNOPSIS use GD; use SVG::GD; $im = new GD::Image(100,50); # allocate black -- this will be our background $black = $im->colorAllocate(0, 0, 0); # allocate white $white = $im->colorAllocate(255, 255, 255); # allocate red $red = $im->colorAllocate(255, 0, 0); # allocate blue $blue = $im->colorAllocate(0,0,255); #Inscribe an ellipse in the image $im->arc(50, 25, 98, 48, 0, 360, $white); # Flood-fill the ellipse. Fill color is red, and will replace the # black interior of the ellipse $im->fill(50, 21, $red); binmode STDOUT; # print the image to stdout print $im->png; Requirements: · Perl


SVG::GD Related Software