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 dimensional 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       <http://www.martinreddy.net/gfx/2d/XBM.txt>.
52

AUTHOR

54       Jerrad Pierce <belg4mit@mit.edu>/<webmaster@pthbb.org>
55
56       Tels - (c) 2006
57
58       Current maintainer: Slaven Rezic <srezic@cpan.org>
59
60       This library is free software; you can redistribute it and/or modify it
61       under the same terms as Perl itself.
62
63
64
65perl v5.32.0                      2020-07-28               Image::Info::XBM(3)
Impressum