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:
669 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.
|
---|
4 | package Image::Size;
|
---|
5 |
|
---|
6 | #line 1052 "lib/Image/Size.pm (autosplit into blib/lib/auto/Image/Size/bmpsize.al)"
|
---|
7 | # bmpsize: size a Windows-ish BitMaP image
|
---|
8 | #
|
---|
9 | # Adapted from code contributed by Aldo Calpini <[email protected]>
|
---|
10 | sub bmpsize
|
---|
11 | {
|
---|
12 | my $stream = shift;
|
---|
13 |
|
---|
14 | my ($x, $y, $id) = (undef, undef, "Unable to determine size of BMP data");
|
---|
15 | my ($buffer);
|
---|
16 |
|
---|
17 | $buffer = &$read_in($stream, 26);
|
---|
18 | ($x, $y) = unpack("x18VV", $buffer);
|
---|
19 | $id = 'BMP' if (defined $x and defined $y);
|
---|
20 |
|
---|
21 | ($x, $y, $id);
|
---|
22 | }
|
---|
23 |
|
---|
24 | # end of Image::Size::bmpsize
|
---|
25 | 1;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.