GuessWidth.h
上传用户:gzboli
上传日期:2013-04-10
资源大小:471k
文件大小:1k
- // WidthCor.h: interface for the CGuessWidth class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_GUESSWIDTH_H__C771B87C_1384_456C_9009_98770CB89D70__INCLUDED_)
- #define AFX_GUESSWIDTH_H__C771B87C_1384_456C_9009_98770CB89D70__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- //#define MINWIDTH 1000
- //#define MAXWIDTH 25889
- class CGuessWidth
- {
- public:
- // DWORD m_iMinWidth;
- // DWORD m_iMaxWidth;
- // DWORD m_iWidth;
- // DWORD m_iHeight;
- public:
- CGuessWidth();
- virtual ~CGuessWidth();
- double WidthDetect(DWORD &iWidth,DWORD &iHeight,LPCTSTR lpszFile, short iBytes, DWORD wHeaderSize = 0);
- protected:
- double CPXDetect(DWORD &iWidth,DWORD &iHeight,LPCTSTR lpszFile);
- template <class T> double FindWidth(DWORD &iWidth,DWORD &iHeight,LPCTSTR lpszFile,T iDepth, DWORD wHeaderSize = 0);
- // double FindWidth(DWORD &iWidth,DWORD &iHeight,LPCTSTR lpszFile,BYTE iDepth);
-
- // double FindWidth(DWORD &iWidth,DWORD &iHeight,LPCTSTR lpszFile,BYTE iDepth);
- // template <class T> double Correlate(const T *row1,const T *row2,DWORD width);
- CGuessWidth(const CGuessWidth&);
- CGuessWidth& operator=(const CGuessWidth&);
- };
- #endif // !defined(AFX_GUESSWIDTH_H__C771B87C_1384_456C_9009_98770CB89D70__INCLUDED_)