win32 BITMAPFILEHEADER --- 14字节

The BITMAPFILEHEADER structure contains information about the type, size, and layout of a file that contains a DIB.

typedef struct tagBITMAPFILEHEADER {
  WORD  bfType;
  DWORD bfSize;
  WORD  bfReserved1;
  WORD  bfReserved2;
  DWORD bfOffBits;
} BITMAPFILEHEADER, *PBITMAPFILEHEADER;

Members

bfType
The file type; must be BM.

bfSize
The size, in bytes, of the bitmap file.

bfReserved1
Reserved; must be zero.

bfReserved2
Reserved; must be zero.

bfOffBits
The offset, in bytes, from the beginning of the BITMAPFILEHEADER structure to the bitmap bits.

Remarks

A BITMAPINFO or BITMAPCOREINFO structure immediately follows the BITMAPFILEHEADER structure in the DIB file. For more information, see Bitmap Storage.

于<<数字图像处理编程入门>>,code为自己实现,是win32控制台程序。

 bfOffBits = sizeof (BITMAPFILEHEADER) +sizeof(BITMAPINFOHEADER) + NumberOfRGBQUAD * sizeof(RGBQUAD)

猜你喜欢

转载自blog.csdn.net/wowocpp/article/details/80855842