1 package Imager::File::PNG;
4 use vars qw($VERSION @ISA);
10 XSLoader::load('Imager::File::PNG', $VERSION);
13 Imager->register_reader
18 my ($im, $io, %hsh) = @_;
19 $im->{IMG} = i_readpng_wiol($io);
22 $im->_set_error(Imager->_error_as_msg);
29 Imager->register_writer
34 my ($im, $io, %hsh) = @_;
36 $im->_set_opts(\%hsh, "i_", $im);
37 $im->_set_opts(\%hsh, "png_", $im);
39 unless (i_writepng_wiol($im->{IMG}, $io)) {
40 $im->_set_error(Imager->_error_as_msg);
51 Imager::File::PNG - read and write PNG files
57 my $img = Imager->new;
58 $img->read(file=>"foo.png")
61 $img->write(file => "foo.png")
66 Imager's PNG support is documented in L<Imager::Files>.
70 Tony Cook <tonyc@cpan.org>
74 Imager, Imager::Files.