core/vil/file_formats/vil_bmp_info_header.h
Go to the documentation of this file.
00001 // This is core/vil/file_formats/vil_bmp_info_header.h
00002 #ifndef vil_bmp_info_header_h_
00003 #define vil_bmp_info_header_h_
00004 #ifdef VCL_NEEDS_PRAGMA_INTERFACE
00005 #pragma interface
00006 #endif
00007 //:
00008 // \file
00009 // \author fsm
00010 
00011 class vil_stream;
00012 #include <vcl_iosfwd.h>
00013 
00014 struct vil_bmp_info_header
00015 {
00016   enum { disk_size = 4+4+4+4+4+4 };  // this is what is *on disk*.
00017   unsigned compression; // 4
00018   unsigned bitmap_size; // 4
00019   unsigned horiz_res;   // 4
00020   unsigned verti_res;   // 4
00021   unsigned colormapsize;// 4
00022   unsigned colorcount;  // 4
00023 
00024   vil_bmp_info_header();
00025   void read(vil_stream *);
00026   void write(vil_stream *) const;
00027   void print(vcl_ostream &) const;
00028 };
00029 
00030 #endif // vil_bmp_info_header_h_