peterworth
Programmer
i am reading the first 14 bytes of a bitmap into a struct like this:
struct bmfh
{
unsigned short int bfType;
unsigned long int bfSize;
unsigned short int bfReserved1, bfReserved2;
unsigned long int bfOffBits;
};
and the results come out like this:
type: BM
size: 5
reserved1: 0
reserved2: 1078
bit offset: 3452764160
surely the size and offset cant be correct, does anyone know what i'm doing wrong? other bitmaps give similar values.
thanks.
struct bmfh
{
unsigned short int bfType;
unsigned long int bfSize;
unsigned short int bfReserved1, bfReserved2;
unsigned long int bfOffBits;
};
and the results come out like this:
type: BM
size: 5
reserved1: 0
reserved2: 1078
bit offset: 3452764160
surely the size and offset cant be correct, does anyone know what i'm doing wrong? other bitmaps give similar values.
thanks.