00001 // This is core/vil/file_formats/vil_bmp_core_header.h 00002 #ifndef vil_bmp_core_header_h_ 00003 #define vil_bmp_core_header_h_ 00004 #ifdef VCL_NEEDS_PRAGMA_INTERFACE 00005 #pragma interface 00006 #endif 00007 //: 00008 // \file 00009 // \author fsm 00010 // \verbatim 00011 // Modifications 00012 // Nick Costen added Manchester IO 16/3/01 00013 // \endverbatim 00014 00015 class vil_stream; 00016 #include <vcl_iosfwd.h> 00017 00018 struct vil_bmp_core_header 00019 { 00020 enum { disk_size = 4+4+4+2+2 }; // this is what is *on disk*. 00021 unsigned header_size; // 4 00022 unsigned width; // 4 00023 unsigned height; // 4 00024 short planes; // 2 00025 short bitsperpixel; // 2 00026 00027 vil_bmp_core_header(); 00028 void read(vil_stream *); 00029 void write(vil_stream *) const; 00030 void print(vcl_ostream &) const; 00031 }; 00032 00033 #endif // vil_bmp_core_header_h_