1 package Imager::File::SGI;
4 use vars qw($VERSION @ISA);
10 XSLoader::load('Imager::File::SGI', $VERSION);
13 Imager->register_reader
18 my ($im, $io, %hsh) = @_;
19 $im->{IMG} = i_readsgi_wiol($io, $hsh{page} || 0);
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, "sgi_", $im);
39 unless (i_writesgi_wiol($io, $im->{IMG})) {
40 $im->_set_error(Imager->_error_as_msg);
51 Imager::File::ICO - read MS Icon files
57 my $img = Imager->new;
58 $img->read(file=>"foo.ico")
61 my @imgs = Imager->read_multi(file => "foo.ico")
62 or die Imager->errstr;
64 $img->write(file => "foo.ico")
67 Imager->write_multi({ file => "foo.ico" }, @imgs)
68 or die Imager->errstr;
72 Imager's MS Icon support is documented in L<Imager::Files>.
76 Tony Cook <tonyc@cpan.org>
80 Imager, Imager::Files.