www.pudn.com > BMPChange.rar > BMPChangeView.h


// BMPChangeView.h : interface of the CBMPChangeView class 
// 
///////////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_BMPCHANGEVIEW_H__39C85ACC_324D_11D5_B1FF_B1E0C64E3A5A__INCLUDED_) 
#define AFX_BMPCHANGEVIEW_H__39C85ACC_324D_11D5_B1FF_B1E0C64E3A5A__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
 
class CBMPChangeView : public CFormView 
{ 
protected: // create from serialization only 
	CBMPChangeView(); 
	DECLARE_DYNCREATE(CBMPChangeView) 
 
public: 
	//{{AFX_DATA(CBMPChangeView) 
	enum{ IDD = IDD_BMPCHANGE_FORM }; 
		// NOTE: the ClassWizard will add data members here 
	//}}AFX_DATA 
 
// Attributes 
public: 
	CBMPChangeDoc* GetDocument(); 
 
// Operations 
public: 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CBMPChangeView) 
	public: 
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs); 
	protected: 
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support 
	virtual void OnInitialUpdate(); // called first time after construct 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	int m_nHeight; 
	int m_nWidth; 
	int Contrast(int Y,int S1,int T1,int S2,int T2); 
	unsigned char* m_cpBuffer; 
	DWORD m_dwFileLen; 
	CFile m_fFile; 
	bool m_bCanConv; 
	virtual ~CBMPChangeView(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
protected: 
 
// Generated message map functions 
protected: 
	//{{AFX_MSG(CBMPChangeView) 
	afx_msg void OnOpenBMP(); 
	afx_msg void OnGray(); 
	afx_msg void OnContrary(); 
	afx_msg void OnContrast(); 
	afx_msg void OnDynamicCompress(); 
	afx_msg void OnGraySplit(); 
	afx_msg void OnGml(); 
	afx_msg void OnCdf(); 
	afx_msg void OnSml(); 
	afx_msg void OnG1Filter(); 
	afx_msg void OnG2Filter(); 
	afx_msg void OnG3Filter(); 
	afx_msg void OnButterworthL(); 
	afx_msg void OnButterworthH(); 
	afx_msg void OnRetrorseFilter(); 
	afx_msg void OnWienerFilter(); 
	afx_msg void OnSobel(); 
	afx_msg void OnPrewitt(); 
	afx_msg void OnRoberts(); 
	afx_msg void OnLaplacian(); 
	afx_msg void OnGuassLaplacian(); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
#ifndef _DEBUG  // debug version in BMPChangeView.cpp 
inline CBMPChangeDoc* CBMPChangeView::GetDocument() 
   { return (CBMPChangeDoc*)m_pDocument; } 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_BMPCHANGEVIEW_H__39C85ACC_324D_11D5_B1FF_B1E0C64E3A5A__INCLUDED_)