I have a bmp file. I have read in its header that its size is "56 5A 03" which means 0x035A56. However, every Hex editor that I use to see the contents of that file shows me 0x038000 bytes for this file.
- My gene开发者_如何学运维ral question is that does bmp file contains a trailer/footer?
- in the mentioned case, what is the problem?
Thanks.
The Wikipedia page on the BMP format describes the format, and describes that field in the header as "the image size. This is the size of the raw bitmap data (see below), and should not be confused with the file size." which means it's likely not counting the padding between pixels.
精彩评论