Umasoft
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
BImage.h
1 
2 #ifndef CBIMAGE_H
3 #define CBIMAGE_H
4 
5 class CDib;
6 class OGRSpatialReference;
7 
8 class CBImage
9 {
10 public:
11  CBImage();
12  ~CBImage();
13 
14  bool LoadFromFile(const char *szPathName, CDC *pDC, HDRAWDIB hdd);
15  bool LoadTFW(const char *szPathName);
16 
17 private:
18  bool LoadGDAL(const char *szPathName, CDC *pDC, HDRAWDIB hdd);
19 
20 public:
21  OGRSpatialReference *m_pSpatialReference;
22  CDib *m_pSourceDIB, *m_pMonoDIB, *m_pCurrentDIB;
23  CBitmap m_bmp;
24  bool m_initialized;
25 
26  CPoint m_PixelSize; // size of bitmap from the file
27  double m_xUTMoffset; //data obtained from image world file (.tfw)
28  double m_yUTMoffset;
29  double m_fImageWidth; // in UTM meters
30  double m_fImageHeight; // same
31  double m_xMetersPerPixel;
32  double m_yMetersPerPixel;
33 };
34 
35 #endif CBIMAGE_H