www.pudn.com > Imagewavelet.rar > ImageView.h


// ImageView.h : interface of the CImageView class 
// 
///////////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_IMAGEVIEW_H__A875FA5A_1418_4E3F_B804_B39AD5C23149__INCLUDED_) 
#define AFX_IMAGEVIEW_H__A875FA5A_1418_4E3F_B804_B39AD5C23149__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
 
class CImageView : public CScrollView 
{ 
protected: // create from serialization only 
	CImageView(); 
	DECLARE_DYNCREATE(CImageView) 
 
// Attributes 
public: 
	CImageDoc* GetDocument(); 
    void ShowDIB(double* dDIB,DWORD Width,DWORD Height,DWORD g_Width,DWORD g_Height, 
		         HDIB hDIB,unsigned char is_ffwt,DWORD offset); 
// Operations 
public: 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CImageView) 
	public: 
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view 
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs); 
	virtual void OnInitialUpdate(); 
	protected: 
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo); 
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo); 
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo); 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	CRect m_rcDIB; 
	//定义图像大小 
	int m_nxsize; 
	int m_nysize; 
	//定义图像指针 
	unsigned char **m_pImage_in; 
	unsigned char **m_pImage_out; 
	virtual ~CImageView(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
protected: 
 
// Generated message map functions 
protected: 
	//{{AFX_MSG(CImageView) 
	afx_msg void OnQufan(); 
	afx_msg void OnJiance(); 
	afx_msg void OnWavelet(); 
	afx_msg void OnFft(); 
	afx_msg void OnOnce(); 
	//}}AFX_MSG 
	 
	DECLARE_MESSAGE_MAP() 
}; 
 
#ifndef _DEBUG  // debug version in ImageView.cpp 
inline CImageDoc* CImageView::GetDocument() 
   { return (CImageDoc*)m_pDocument; } 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_IMAGEVIEW_H__A875FA5A_1418_4E3F_B804_B39AD5C23149__INCLUDED_)