Can you explain in detail data in the picture is what mean?
CodePudding user response:
Bitmap StorageCodePudding user response:
Search on the MSDN BITMAPFILEHEADER BITMAPINFOHEADERCodePudding user response:
Want to know the detailed data information, there is no good theory of time, not free to programming, speaking, reading and writing, I studied under a while ago, will probably be used, the program also wrote, it's a pity that there are still some details not understand, didn't read the data after the color tableCodePudding user response:
Going to read a shapefile format files a tryCodePudding user response:
Typedef struct tagBITMAPFILEHEADER {WORD bfType;//the first two bytes' MB '
DWORD bfSize;
WORD bfReserved1;
WORD bfReserved2;
DWORD bfOffBits;
} BITMAPFILEHEADER, LPBITMAPFILEHEADER FAR * and * PBITMAPFILEHEADER;
After the file head
Typedef struct tagBITMAPINFOHEADER {//bmih
DWORD biSize;
LONG biWidth;
LONG biHeight;
WORD biPlanes;
WORD biBitCount
DWORD biCompression;
DWORD biSizeImage;
LONG biXPelsPerMeter;
LONG biYPelsPerMeter;
DWORD biClrUsed;
DWORD biClrImportant;
} BITMAPINFOHEADER;