1 package Imager::File::SGI;
4 use vars qw($VERSION @ISA);
11 XSLoader::load('Imager::File::SGI', $VERSION);
15 push @ISA, 'DynaLoader';
16 bootstrap Imager::File::SGI $VERSION;
20 Imager->register_reader
25 my ($im, $io, %hsh) = @_;
26 $im->{IMG} = i_readsgi_wiol($io, $hsh{page} || 0);
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, "sgi_", $im);
46 unless (i_writesgi_wiol($io, $im->{IMG})) {
47 $im->_set_error(Imager->_error_as_msg);
58 Imager::File::ICO - read MS Icon files
64 my $img = Imager->new;
65 $img->read(file=>"foo.ico")
68 my @imgs = Imager->read_multi(file => "foo.ico")
69 or die Imager->errstr;
71 $img->write(file => "foo.ico")
74 Imager->write_multi({ file => "foo.ico" }, @imgs)
75 or die Imager->errstr;
79 Imager's MS Icon support is documented in L<Imager::Files>.
83 Tony Cook <tonyc@cpan.org>
87 Imager, Imager::Files.