{
    "mode": "perldoc",
    "parameter": "Image::Info::XBM",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Image%3A%3AInfo%3A%3AXBM/json",
    "generated": "2026-06-10T16:42:50Z",
    "synopsis": "use Image::Info qw(imageinfo dim);\nmy $info = imageinfo(\"image.xbm\");\nif (my $error = $info->{error}) {\ndie \"Can't parse image info: $error\\n\";\n}\nmy $color = $info->{colortype};\nmy($w, $h) = dim($info);",
    "sections": {
        "NAME": {
            "content": "Image::Info::XBM - XBM support for Image::Info\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use Image::Info qw(imageinfo dim);\n\nmy $info = imageinfo(\"image.xbm\");\nif (my $error = $info->{error}) {\ndie \"Can't parse image info: $error\\n\";\n}\nmy $color = $info->{colortype};\n\nmy($w, $h) = dim($info);\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This modules supplies the standard key names except for Compression, Gamma, Interlace,\nLastModificationTime, as well as:\n\nHotSpotX\nThe x-coord of the image's hotspot. Set to -1 if there is no hotspot.\n\nHotSpotY\nThe y-coord of the image's hotspot. Set to -1 if there is no hotspot.\n\nL1DHistogram\nReference to an array representing a one dimensional luminance histogram. This key is only\npresent if \"imageinfo\" is invoked as \"imageinfo($file, L1DHistogram=>1)\". The range is\nfrom 0 to 1.\n",
            "subsections": []
        },
        "METHODS": {
            "content": "processfile()\n$info->processfile($source, $options);\n\nProcesses one file and sets the found info fields in the $info object.\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Jerrad Pierce <belg4mit@mit.edu>/<webmaster@pthbb.org>\n\nTels - (c) 2006\n\nCurrent maintainer: Slaven Rezic <srezic@cpan.org>\n\nThis library is free software; you can redistribute it and/or modify it under the same terms as\nPerl itself.\n",
            "subsections": []
        },
        "FILES": {
            "content": "This module requires Image::Xbm\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "Image::Info, Image::Xbm\n",
            "subsections": []
        },
        "NOTES": {
            "content": "For more information about XBM see <http://www.martinreddy.net/gfx/2d/XBM.txt>.\n",
            "subsections": []
        }
    },
    "summary": "Image::Info::XBM - XBM support for Image::Info",
    "flags": [],
    "examples": [],
    "see_also": []
}