1Image::Info::BMP(3)   User Contributed Perl Documentation  Image::Info::BMP(3)
2
3
4

NAME

6       Image::Info:BMP - Windows Device Indepdent Bitmap support for
7       Image::Info
8

SYNOPSIS

10        use Image::Info qw(image_info dim);
11
12        my $info = image_info("image.bmp");
13        if (my $error = $info->{error}) {
14            die "Can't parse image info: $error\n";
15        }
16        my $color = $info->{color_type};
17
18        my($w, $h) = dim($info);
19

DESCRIPTION

21       This modules supplies the standard key names except for Gamma, Inter‐
22       lace, LastModificationTime, as well as:
23
24       BMP_ColorsImportant
25           Specifies the number of color indexes that are required for dis‐
26           playing the bitmap. If this value is zero, all colors are required.
27
28       BMP_Origin
29           If true the bitmap is a bottom-up DIB and its origin is the lower-
30           left corner.  Otherwise, the bitmap is a top-down DIB and its ori‐
31           gin is the upper-left corner.
32
33       ColorPalette
34           Reference to an array of all colors used.  This key is only present
35           if "image_info" is invoked as "image_info($file, ColorPalette=>1)".
36
37       ColorTableSize
38           The number of colors the image uses.  If 0 then this is a true
39           color image.  The number of color available is 2 ^ BitsPerSample.
40

METHODS

42       process_file()
43
44               $info->process_file($source, $options);
45
46       Processes one file and sets the found info fields in the $info object.
47

SEE ALSO

49       Image::Info
50

NOTES

52       For more information about BMP see:
53
54        http://msdn.microsoft.com
55
56       Random notes:
57
58         warn if height is negative and compress is not RGB or BITFILEDS (0 or 3)
59         ICO and CUR support?
60         ### v5
61         If bit depth is 0, it relies upon underlying JPG/PNG :-(
62         Extra Information
63           DWORD        bV5RedMask;
64           DWORD        bV5GreenMask;
65           DWORD        bV5BlueMask;
66           DWORD        bV5AlphaMask;
67           DWORD        bV5CSType;
68           CIEXYZTRIPLE bV5EndPoints; #3*CIEXYZ #CIEXYZ = 3*FXPT2DOT30#FXPT2DOT30 = long
69           DWORD        bV5GammaRed;
70           DWORD        bV5GammaGreen;
71           DWORD        bV5GammaBlue;
72           DWORD        bV5Intent;
73           DWORD        bV5ProfileData;
74           DWORD        bV5ProfileSize;
75

DIAGNOSTICS

77       Size mismatch
78           The image may be correct, the filesize does not match the inter‐
79           nally stored value.
80

BUGS

82       The current implementation only function on little-endian architec‐
83       tures.  Consequently erroneous data concerning compression (including
84       file_ext and file_mime_type) may be reported.
85

AUTHOR

87       Jerrad Pierce <belg4mit@mit.edu>/<webmaster@pthbb.org>
88
89       This library is free software; you can redistribute it and/or modify it
90       under the same terms as Perl itself.
91
92
93
94perl v5.8.8                       2006-03-04               Image::Info::BMP(3)
Impressum