开发者

Does BMP files have any trailer?

开发者 https://www.devze.com 2023-01-11 07:30 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号