BMP 文件有预告片吗?
我有一个 bmp 文件。我在它的头中读到它的大小是“56 5A 03”,这意味着0x035A56。 然而,我用来查看该文件内容的每个十六进制编辑器都显示该文件的 0x038000 字节。
- 我的一般问题是 bmp 文件是否包含预告片/页脚?
- 在上述情况下,问题出在哪里?
谢谢。
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 general question is that does bmp file contains a trailer/footer?
- in the mentioned case, what is the problem?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
BMP 格式的 维基百科页面 描述了该格式,并将标头中的该字段描述为“图像大小。这是原始位图数据的大小(见下文),不应与文件大小混淆。”这意味着它可能不计算像素之间的填充。
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.