【发布时间】:2014-09-21 21:05:28
【问题描述】:
我目前正在阅读 BMP 文件格式和用于定义位图文件头的I've come across the following lines of code。
typedef struct _WinBMPFileHeader
{
WORD FileType; /* File type, always 4D42h ("BM") */
DWORD FileSize; /* Size of the file in bytes */
WORD Reserved1; /* Always 0 */
WORD Reserved2; /* Always 0 */
DWORD BitmapOffset; /* Starting position of image data in bytes */
} WINBMPFILEHEADER;
第一条评论声称4D42h 与BM 相同。
According to Wikipedia 4D 是 M 的十六进制 ASCII 代码,而 42 是 B 的 ASCII 代码。
不过,h 代表什么?
为什么4D42h 不等同于MB?
【问题讨论】:
标签: ascii endianness bitmapimage hex