1 package Imager::File::PNG;
4 use vars qw($VERSION @ISA);
11 XSLoader::load('Imager::File::PNG', $VERSION);
15 push @ISA, 'DynaLoader';
16 bootstrap Imager::File::PNG $VERSION;
20 Imager->register_reader
25 my ($im, $io, %hsh) = @_;
26 $im->{IMG} = i_readpng_wiol($io);
29 $im->_set_error(Imager->_error_as_msg);
36 Imager->register_writer
41 my ($im, $io, %hsh) = @_;
43 $im->_set_opts(\%hsh, "i_", $im);
44 $im->_set_opts(\%hsh, "png_", $im);
46 unless (i_writepng_wiol($im->{IMG}, $io)) {
47 $im->_set_error(Imager->_error_as_msg);
58 Imager::File::PNG - read and write PNG files
64 my $img = Imager->new;
65 $img->read(file=>"foo.png")
68 $img->write(file => "foo.png")
73 Imager's PNG support is documented in L<Imager::Files>.
77 Tony Cook <tony@imager.perl.org>
81 Imager, Imager::Files.