vil_bmp_info_header.cxx
Go to the documentation of this file.
1 // This is core/vil/file_formats/vil_bmp_info_header.cxx
2 //:
3 // \file
4 // \author fsm
5 
6 #include <iostream>
7 #include "vil_bmp_info_header.h"
8 
9 #ifdef _MSC_VER
10 # include <vcl_msvc_warnings.h>
11 #endif
12 
13 #include <vil/vil_stream.h>
14 #include <vil/vil_stream_read.h>
15 #include <vil/vil_stream_write.h>
16 
18 {
19  compression = 0;
20  bitmap_size = 0;
21  horiz_res = 0;
22  verti_res = 0;
23  colormapsize = 0;
24  colorcount = 0;
25 }
26 
28 {
35 }
36 
38 {
45 }
46 
47 void vil_bmp_info_header::print(std::ostream &s) const
48 {
49  s << "vil_bmp_info_header:\n"
50  << " compression : " << compression << std::endl
51  << " bitmap_size : " << bitmap_size << std::endl
52  << " horiz_res : " << horiz_res << std::endl
53  << " verti_res : " << verti_res << std::endl
54  << " colormapsize : " << colormapsize << std::endl
55  << " colorcount : " << colorcount << std::endl << std::endl;
56 }
Stream interface for VIL image loaders.
void vil_stream_write_little_endian_uint_32(vil_stream *s, vxl_uint_32 w)
void write(vil_stream *) const
read numbers from vil_stream
Stream interface for VIL image loaders.
Definition: vil_stream.h:21
void read(vil_stream *)
write integers to vil_stream
vxl_uint_32 vil_stream_read_little_endian_uint_32(vil_stream *s)
void print(std::ostream &) const