source: trunk/gsdl/perllib/cpan/auto/Image/Size/xbmsize.al@ 13983

Last change on this file since 13983 was 13983, checked in by lh92, 17 years ago

Added for Realistic Book Project

  • Property svn:keywords set to Author Date Id Revision
File size: 584 bytes
Line 
1# NOTE: Derived from lib/Image/Size.pm.
2# Changes made here will be lost when autosplit is run again.
3# See AutoSplit.pm.
4package Image::Size;
5
6#line 808 "lib/Image/Size.pm (autosplit into blib/lib/auto/Image/Size/xbmsize.al)"
7sub xbmsize
8{
9 my $stream = shift;
10
11 my $input;
12 my ($x, $y, $id) = (undef, undef, "Could not determine XBM size");
13
14 $input = &$read_in($stream, 1024);
15 if ($input =~ /^\#define\s*\S*\s*(\d+)\s*\n\#define\s*\S*\s*(\d+)/si)
16 {
17 ($x, $y) = ($1, $2);
18 $id = 'XBM';
19 }
20
21 ($x, $y, $id);
22}
23
24# end of Image::Size::xbmsize
251;
Note: See TracBrowser for help on using the repository browser.