Skip to content
jtippet edited this page Oct 23, 2020 · 2 revisions

ICO132: InvalidBitmapHeader_biYPelsPerMeter

ICO files can contain bitmap files. However, not all bitmap features are permitted for bitmaps embedded in an icon. One such feature is declaring a bitmap's DPI.

The bitmap declares its DPI using BITMAPINFOHEADER::biXPelsPerMeter and BITMAPINFOHEADER::biYPelsPerMeter. Since DPI is not supported for bitmaps embedded in icons, these fields must be zero. You will receive error ICO132 if biYPelsPerMeter fields is not zero.

You might receive this warning if another tool is sloppy about how it embeds bitmaps inside the ICO file. If you happen to know exactly which tool generated this icon, please file an issue here on GitHub with that info, so we can improve the documentation and tooling.

Known tools that emit ICO files that break this rule:

Clone this wiki locally