I am writing a C application for parsing Windows icon files (ICO).
When I read an existing icon entry in the BITMAPINFOHEADER structure, all the variables in the structure contain the expected values, except that biHeight , which should contain the height in pixels of the image, is always twice what it should be.
So for example, if I have a 64x64 icon, biWidth is 64, but biHeight is 128.
Is this the expected behavior? This is my first time when it comes to BITMAPINFOHEADER .
I mainly work from an article
source share