I need to export previously rendered DIBs into bmp files. I have found out that you need to write a 14 byte mini-header, then a 40 byte BITMAPINFOHEADER, then the array of pixels. My question is: what goes in the mini-header?
42,4D,<DWORD-filesize>,<DWORD-Reserved>,<DWORD-offset_to_imgData>
**
42,4D = "BM"
DWORD-filesize = header.length + palData.length + imgData.length
DWORD-Reserved = 0
<DWORD-offset_to_imgData> = header.length + palData.length
Thanks, that solved all my problems.