Skip to content

About BITMAPFILEHEADER class #37

Answered by Ank1taS
Himanshu40 asked this question in Q&A
Discussion options

You must be logged in to vote

The BITMAPFILEHEADER structure contains information about BMP file i.e the type, size, and layout of a file that includes a DIB. You can refer to the Microsoft documentation. and about file format

Syntax

struct tagBITMAPFILEHEADER {
  WORD  bfType;
  DWORD bfSize;
  WORD  bfReserved1;
  WORD  bfReserved2;
  DWORD bfOffBits;
} ;

BMP Header BITMAPFILEHEADER contains a total of 5 variables

Variable Field Name Size in bytes Description Reference
bfType FileType 2 bytes A 2 character string value in ASCII to specify a DIB file type. It must be 'BM' or '0x42 0x4D' in hexadecimal for modern compatibility reasons. This for details
bfSize FileSize 4 bytes An integer (unsigned) representin…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by chandrakant100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
documentation Improvements or additions to documentation help wanted Extra attention is needed Important
2 participants