Christian Costa titan.costa@gmail.com writes:
- if (header_size == sizeof(BITMAPINFOHEADER))
- {
BITMAPINFOHEADER *header = (BITMAPINFOHEADER*)*data;
ULONG count = header->biClrUsed;
if (!count && header->biBitCount <= 8)
count = 1 << header->biBitCount;
offset = sizeof(BITMAPFILEHEADER) + header_size + sizeof(RGBQUAD) * count;
This isn't correct for all DIB types.