News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

How to make a BMP?

Started by AeroASM, March 15, 2005, 08:07:37 AM

Previous topic - Next topic

AeroASM

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?

Tedd

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
No snowflake in an avalanche feels responsible.

AeroASM

Thanks, that solved all my problems.