Skip to content
jtippet edited this page Mar 23, 2019 · 1 revision

ICO133: InvalidBitmapHeader_biBitCount

ICO files can contain bitmap files. However, only certain color depths are permitted for bitmaps embedded in an ICO file. These color depths are the only officially supported depths:

  • 32-bit / deep color / billions of colors
  • 16-bit / high color / 65536 colors
  • 8-bit / VGA / 256 colors
  • 4-bit / EGA / 16 colors
  • 2-bit / CGA / 4 colors
  • 1-bit / monochrome / 2 colors

Note that, for example, 24-bit color is not officially permitted. The IcoTools suite can be coerced into producing 24-bit color if you use command-line arguments to override the defaults. But not all graphics tools can display icons with 24-bit colors.

If you are handling icons with non-standard color depths, be sure to carefully test the icons with all the graphics libraries that you care about.

Clone this wiki locally