vicky wrote:
Quote:
I've a code in which the structure of Bitmap is given as ----
>
typedef struct
{
U8 uFlags; // combination of flags above
U8 uBitsPix; // 1, 2, 4, 8, 16, or 24
U16 wWidth; // in pixels
U16 wHeight; // in pixels
U16 dTransColor; // transparent color for 8bpp
bitmaps
U8 *pStart; // bitmap data pointer
>
}GfxBitmap;
>
an example for this structure is...
>
GfxBitmap gbHighlightOptionBitmap = { 0x11, 8, 250, 38, 0x00000000,
(UCHAR *) ucHighlightOptionBitmap };
>
now my query is that if this is a complete header for bmp file then
what about the header for window which is above 50 bytes
>
Can u also give over view of this structure ...as what is uFlag and
dTransColor ...
|
You have been missinformed. The header is (assuming unsigned short is 2
bytes and unsigned int is 4 bytes):
unsigned short bfType;
unsigned int bfSize;
unsigned short bfReserved1;
unsigned short bfReserved2;
unsigned int bOffBits;
unsigned int biSize;
unsigned int biWidth;
unsigned int biHeight;
unsigned short biPlanes;
unsigned short biBitCount;
unsigned int biCompression;
unsigned int biSizeImage;
unsigned int biXPelsPerMeter;
unsigned int biYPelsPerMeter;
unsigned int biClrUsed;
unsigned int biClrImportant;
What you have posted seems to be a struct for something that is nothing
to do with a BMP file, but just some format a program uses after it has
read the file.
(Even the wikipedia page on BMP will give you this sort of info go and
read about BMP format there)