1Image::Info::XBM(3) User Contributed Perl Documentation Image::Info::XBM(3)
2
3
4
6 Image::Info::XBM - XBM support for Image::Info
7
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
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 his‐
33 togram. 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
37 process_file()
38
39 $info->process_file($source, $options);
40
41 Processes one file and sets the found info fields in the $info object.
42
45 This module requires Image::Xbm
46
48 Image::Info, Image::Xbm
49
51 For more information about XBM see:
52
53 http://www.dcs.ed.ac.uk/home/mxr/gfx/2d/XBM.txt
54
56 Jerrad Pierce <belg4mit@mit.edu>/<webmaster@pthbb.org>
57
58 Now maintained by Tels - (c) 2006.
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.8.8 2006-03-04 Image::Info::XBM(3)