Graphics::MNG

Graphics::MNG is a Perl extension for the MNG library from Gerard Juyn.
Download

Graphics::MNG Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • David P. Mott
  • Publisher web site:
  • http://search.cpan.org/~mott/Graphics-MNG-0.04/MNG.pm

Graphics::MNG Tags


Graphics::MNG Description

Graphics::MNG is a Perl extension for the MNG library from Gerard Juyn. Graphics::MNG is a Perl extension for the MNG library from Gerard Juyn.SYNOPSIS # OO-interface use Graphics::MNG; my $it=; my $obj = new Graphics::MNG ( ); # w/o user data my $obj = new Graphics::MNG ( undef ); # w/o user data my $obj = new Graphics::MNG ( $it ); # w/ user data my $obj = Graphics::MNG::new( ); # w/o name w/o data my $obj = Graphics::MNG::new('Graphics::MNG' ); # w/ name w/o data my $obj = Graphics::MNG::new('Graphics::MNG',$it); # w/ name w/ data $obj->set_userdata(); my $data = $obj->get_userdata(); print @$data,"n"; undef $obj; # functional interface use Graphics::MNG qw( :fns ); my $handle = initialize( ); die "Can't get an MNG handle" if ( MNG_NULL == $handle ); my $rv = reset( $handle ); die "Can't reset the MNG handle" unless ( MNG_NOERROR == $rv ); my $data = get_userdata( $handle ); print @$data,"n"; $rv = cleanup( $handle ); die "handle not NULL" unless ( MNG_NULL == $handle );DESCRIPTION This is alpha stage software. Use at your own risk. Please visit http://www.libmng.com/ to learn all about the new MNG format. MNG (which stands for Multiple Network Graphics) is an extension of the PNG format, which is already gaining popularity over the GIF format. MNG adds the aspect of animation that PNG lacks. The Gd module (by Lincoln Stein) supports PNG formats, but MNG is more complicated. It would be cumbersome to add support to the Gd interface for MNG. Gerard Juyn as been kind enough to bring us a C-library that supports MNG, so now I thought I'd do my part in bringing you a Perl interface to that library. The Graphics::MNG module is an attempt to provide an "accurate" interface to the MNG graphics library. This means that the Perl methods supported in this module should look very much like the functions in the MNG library interface. This module supports both a functional and an OO interface to the MNG library. Requirements: · Perl


Graphics::MNG Related Software