Torsten Schönfeld > Gnome2-Rsvg-0.10 > Gnome2::Rsvg

Download:
Gnome2-Rsvg-0.10.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Module Version: 0.10   Source  

NAME ^

Gnome2::Rsvg - Perl interface to the RSVG library

SYNOPSIS ^

  use Gnome2::Rsvg;

  my $svg = "path/to/image.svg";

  # The easy way.
  my $pixbuf = Gnome2::Rsvg -> pixbuf_from_file($svg);

  # The harder way.
  my $handle = Gnome2::Rsvg::Handle -> new();

  open(SVG, $svg) or die("Opening '$svg': $!");

  while (<SVG>) {
    $handle -> write($_) or die("Could not parse '$svg'");
  }

  close(SVG);

  $handle -> close() or die("Could not parse '$svg'");

  $pixbuf = $handle -> get_pixbuf();

ABSTRACT ^

This module allows a Perl developer to use the Scalable Vector Graphics library (librsvg for short).

SEE ALSO ^

Gnome2::Rsvg::index(3pm), Gtk2(3pm), Gtk2::api(3pm) and http://librsvg.sourceforge.net/docs/html/index.html

AUTHOR ^

Torsten Schoenfeld <kaffeetisch at gmx dot de>.

COPYRIGHT AND LICENSE ^

Copyright (C) 2003-2005 by the gtk2-perl team