vil_bmp_core_header.h
Go to the documentation of this file.
1 // This is core/vil/file_formats/vil_bmp_core_header.h
2 #ifndef vil_bmp_core_header_h_
3 #define vil_bmp_core_header_h_
4 //:
5 // \file
6 // \author fsm
7 // \verbatim
8 // Modifications
9 // Nick Costen added Manchester IO 16/3/01
10 // \endverbatim
11 
12 class vil_stream;
13 #include <iosfwd>
14 #ifdef _MSC_VER
15 # include <vcl_msvc_warnings.h>
16 #endif
17 
19 {
20  enum { disk_size = 4+4+4+2+2 }; // this is what is *on disk*.
21  unsigned header_size; // 4
22  int width; // 4, can be negative
23  int height; // 4, can be negative
24  short planes; // 2
25  short bitsperpixel; // 2
26 
28  void read(vil_stream *);
29  void write(vil_stream *) const;
30  void print(std::ostream &) const;
31 };
32 
33 #endif // vil_bmp_core_header_h_
Stream interface for VIL image loaders.
Definition: vil_stream.h:21
void read(vil_stream *)
void print(std::ostream &) const
void write(vil_stream *) const