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

NAME

6       Image::Info::XBM - XBM support for Image::Info
7

SYNOPSIS

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

DESCRIPTION

20       This modules supplies the standard key names except for Compression,
21       Gamma, Interlace, LastModificationTime, as well as:
22
23       HotSpotX
24           The x-coord of the image's hotspot.  Set to -1 if there is no
25           hotspot.
26
27       HotSpotY
28           The y-coord of the image's hotspot.  Set to -1 if there is no
29           hotspot.
30
31       L1D_Histogram
32           Reference to an array representing a one dimensioanl luminance
33           histogram. This key is only present if "image_info" is invoked as
34           "image_info($file, L1D_Histogram=>1)". The range is from 0 to 1.
35

METHODS

37   process_file()
38               $info->process_file($source, $options);
39
40       Processes one file and sets the found info fields in the $info object.
41

AUTHOR

FILES

44       This module requires Image::Xbm
45

SEE ALSO

47       Image::Info, Image::Xbm
48

NOTES

50       For more information about XBM see:
51
52        http://www.dcs.ed.ac.uk/home/mxr/gfx/2d/XBM.txt
53

AUTHOR

55       Jerrad Pierce <belg4mit@mit.edu>/<webmaster@pthbb.org>
56
57       Now maintained by Tels - (c) 2006.
58
59       This library is free software; you can redistribute it and/or modify it
60       under the same terms as Perl itself.
61
62
63
64perl v5.12.0                      2006-03-05               Image::Info::XBM(3)
Impressum