Skip to content

About BITMAPINFOHEADER class #36

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

You must be logged in to vote

The BITMAPINFOHEADER structure contains information about BMP images i.e the dimensions and color format of a device-independent bitmap (DIB). Refer to Microsoft documentation and File format

Syntax

struct tagBITMAPINFOHEADER {
  DWORD biSize;
  LONG  biWidth;
  LONG  biHeight;
  WORD  biPlanes;
  WORD  biBitCount;
  DWORD biCompression;
  DWORD biSizeImage;
  LONG  biXPelsPerMeter;
  LONG  biYPelsPerMeter;
  DWORD biClrUsed;
  DWORD biClrImportant;
} ;
  • size of BITMAPINFOHEADER 40-bytes and contains a total of 11 variables as follow
Variable Field Name Size in bytes Description Reference
biSize HeaderSize 4 bytes An integer (unsigned) representing the size of the header in bytes.…

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