{
    "content": [
        {
            "type": "text",
            "text": "# Image::Info::BMP (perldoc)\n\n## NAME\n\nImage::Info::BMP - Windows Device Independent Bitmap support for Image::Info\n\n## SYNOPSIS\n\nuse Image::Info qw(imageinfo dim);\nmy $info = imageinfo(\"image.bmp\");\nif (my $error = $info->{error}) {\ndie \"Can't parse image info: $error\\n\";\n}\nmy $color = $info->{colortype};\nmy($w, $h) = dim($info);\n\n## DESCRIPTION\n\nThis module supplies the standard key names except for Gamma, Interlace, LastModificationTime,\nas well as:\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **METHODS**\n- **SEE ALSO**\n- **NOTES**\n- **DIAGNOSTICS**\n- **BUGS**\n- **AUTHOR**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "Image::Info::BMP",
        "section": "",
        "mode": "perldoc",
        "summary": "Image::Info::BMP - Windows Device Independent Bitmap support for Image::Info",
        "synopsis": "use Image::Info qw(imageinfo dim);\nmy $info = imageinfo(\"image.bmp\");\nif (my $error = $info->{error}) {\ndie \"Can't parse image info: $error\\n\";\n}\nmy $color = $info->{colortype};\nmy($w, $h) = dim($info);",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 10,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 19,
                "subsections": []
            },
            {
                "name": "METHODS",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "NOTES",
                "lines": 22,
                "subsections": []
            },
            {
                "name": "DIAGNOSTICS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "BUGS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 5,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "Image::Info::BMP - Windows Device Independent Bitmap support for Image::Info\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "use Image::Info qw(imageinfo dim);\n\nmy $info = imageinfo(\"image.bmp\");\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 module supplies the standard key names except for Gamma, Interlace, LastModificationTime,\nas well as:\n\nBMPColorsImportant\nSpecifies the number of color indexes that are required for displaying the bitmap. If this\nvalue is zero, all colors are required.\n\nBMPOrigin\nIf true the bitmap is a bottom-up DIB and its origin is the lower-left corner. Otherwise,\nthe bitmap is a top-down DIB and its origin is the upper-left corner.\n\nColorPalette\nReference to an array of all colors used. This key is only present if \"imageinfo\" is\ninvoked as \"imageinfo($file, ColorPalette=>1)\".\n\nColorTableSize\nThe number of colors the image uses. If 0 then this is a true color image. The number of\ncolors *available* is 2 ^ BitsPerSample.\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": []
            },
            "SEE ALSO": {
                "content": "Image::Info\n",
                "subsections": []
            },
            "NOTES": {
                "content": "For more information about BMP see <http://msdn.microsoft.com>.\n\nRandom notes:\n\nwarn if height is negative and compress is not RGB or BITFILEDS (0 or 3)\nICO and CUR support?\n### v5\nIf bit depth is 0, it relies upon underlying JPG/PNG :-(\nExtra Information\nDWORD        bV5RedMask;\nDWORD        bV5GreenMask;\nDWORD        bV5BlueMask;\nDWORD        bV5AlphaMask;\nDWORD        bV5CSType;\nCIEXYZTRIPLE bV5EndPoints; #3*CIEXYZ #CIEXYZ = 3*FXPT2DOT30#FXPT2DOT30 = long\nDWORD        bV5GammaRed;\nDWORD        bV5GammaGreen;\nDWORD        bV5GammaBlue;\nDWORD        bV5Intent;\nDWORD        bV5ProfileData;\nDWORD        bV5ProfileSize;\n",
                "subsections": []
            },
            "DIAGNOSTICS": {
                "content": "Size mismatch\nThe image may be correct, but the filesize does not match the internally stored value.\n",
                "subsections": []
            },
            "BUGS": {
                "content": "The current implementation only functions on little-endian architectures. Consequently erroneous\ndata concerning compression (including fileext and filemimetype) may be reported.\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "Jerrad Pierce <belg4mit@mit.edu>/<webmaster@pthbb.org>\n\nThis library is free software; you can redistribute it and/or modify it under the same terms as\nPerl itself.\n",
                "subsections": []
            }
        }
    }
}