I'm doing some image processing (with OpenGL) on a 465Kb Windows bitmap file, and it appears that the file size in the header section of the file is incorrect - or I do not know how to interprete it.
Like I said the file is 465Kb in size (according to windows explorer) but when I query the header like thus:
(BITMAPFILEHEADER File_header
...
...
File_header.bfSize
I get 7! Which is a far cry from 465!
Or is it that File_header is the size of the header section? cos that is what it seem like:
_____________________________
typedef struct {
unsigned short bfType;
unsigned int bfSize;
unsigned short bfReserved1;
unsigned short bfReserved2;
unsigned int bfOffBits;
} BITMAPFILEHEADER;
My Observation: The size of BITMAPFILEHEADER is 7 Double words!
________________________________
Alrighty then. What am I doing wrong ...





