2 # bmpFile.h : $Revision$
25 typedef struct bmpFileHeader {
27 unsigned int bfSize; // FileSize [Byte]
30 unsigned int bfOffBits; // ImageOffset [Byte]
31 } bmpFileHeader; /* 14 BYTE */
33 typedef struct bmpFileInfoHeader {
35 int biWidth; // [Pixel]
36 int biHeight; // [Pixel]
37 unsigned short biPlanes; // 1
38 unsigned short biBitCount; // bits/pixel
39 unsigned int biCompression;
40 unsigned int biSizeImage;
43 unsigned int biCirUsed;
44 unsigned int biCirImportant;
47 typedef struct bmpFileColorPalette {
52 } bmpFileColorPalette;
54 typedef struct bmpFile {
56 bmpFileCoreHeader Info;
57 bmpFileColorPalette* Palette ;
59 unsigned char* ColorImage;
71 typedef enum lbmp2mrcInfoMode {
78 typedef struct lbmp2mrcInfo {
79 mrcImageParaTypeRealCoord Length;
80 lbmp2mrcInfoMode mode;
92 extern void bmpFileRead(bmpFile* in, FILE* fpt, int mode);
95 extern void lbmp2mrc(mrcImage* out, bmpFile* in, lbmp2mrcInfo linfo, int mode);
96 extern void lbmp2mrcUsage(FILE* fpt);
99 extern void bmpFileInfo(FILE* fpt, bmpFile* in, int mode);
100 extern void bmpFileFileHeaderInfo(FILE* fpt, bmpFile* in, int mode);
101 extern void bmpFileInfoHeaderInfo(FILE* fpt, bmpFile* in, int mode);
102 extern void bmpFilePaletteInfo(FILE* fpt, bmpFile* in, int mode);