Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Bitmap image format explained
- Data (Hex) Meaning Size(Bytes) Ascii Notes
- 41 69 00 00 FooBar 4 Hi (this says "Hi")
- Header:
- 42 4d Signature 2 BM (always BM)
- 4e 00 00 00 FileSize 4 78 (in bytes)
- 00 00 00 00 reserved 4 unused (always 0)
- 36 00 00 00 DataOffset 4 54 (Offset from beginning of file to the beginning of the bitmap data)
- InfoHeader:
- 28 00 00 00 InfoSize 4 40 (almost always 40)
- 08 00 00 00 Width 4 8
- 01 00 00 00 Height 4 1
- 01 00 Planes 2 1 (almost always 1)
- 18 00 bits/pixel 2 24 (almost always 24)
- 00 00 00 00 Compression 4 0
- 00 00 00 00 ImageSize 4 0 (0 is valid iff bits/pixel = 24)
- 00 00 00 00 XpixelsPerM 4 0 (rarely used)
- 00 00 00 00 YpixelsPerM 4 0 (rarely used)
- 00 00 00 00 ColsUsed 4 0 (only used if bits/pixel != 24)
- 00 00 00 00 ImportantCols 4 0 (only used if bits/pixel != 24)
- PixelData:
- ff ff ff R G B [0]
- ff ff ff R G B [1]
- ff ff ff R G B [2]
- ff ff ff R G B [...]
- ff ff ff
- ff ff ff
- ff ff ff
- ff ff ff
- Uncommented:
- 42 4d
- 4e 00 00 00
- 00 00 00 00
- 36 00 00 00
- 28 00 00 00
- 08 00 00 00
- 01 00 00 00
- 01 00 18 00
- 00 00 00 00
- 00 00 00 00
- 00 00 00 00
- 00 00 00 00
- 00 00 00 00
- 00 00 00 00
- ff ff ff
- ff ff ff
- ff ff ff
- ff ff ff
- ff ff ff
- ff ff ff
- ff ff ff
- ff ff ff
Add Comment
Please, Sign In to add comment