www.pudn.com > pict.rar > ImageMeasureDoc.h
// ImageMeasureDoc.h : interface of the CImageMeasureDoc class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_IMAGEMEASUREDOC_H__4168C711_79EC_4973_A2F1_028A7EE035DE__INCLUDED_)
#define AFX_IMAGEMEASUREDOC_H__4168C711_79EC_4973_A2F1_028A7EE035DE__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CImageMeasureDoc : public CDocument//associate with the bmp
{
protected: // create from serialization only
CImageMeasureDoc();
DECLARE_DYNCREATE(CImageMeasureDoc)
// Attributes
public:
CBitmap m_Bitmap;
long WIDTH;
long m_lHeight;
long m_lWidth;
unsigned char* pBits;//point to the pixels of the bmp;
int m_Color;//8 or 24 bits;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CImageMeasureDoc)
public:
virtual BOOL OnNewDocument();
virtual void Serialize(CArchive& ar);
virtual BOOL OnOpenDocument(LPCTSTR lpszPathName);
virtual BOOL OnSaveDocument(LPCTSTR lpszPathName);
virtual void DeleteContents();
//}}AFX_VIRTUAL
// Implementation
public:
BOOL Scan (int m,int n);
virtual ~CImageMeasureDoc();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
void OnSmooth();
// Generated message map functions
protected:
//{{AFX_MSG(CImageMeasureDoc)
afx_msg void OnMidfilter();
afx_msg void OnSharp();
afx_msg void OnMax();
afx_msg void OnMin();
afx_msg void OnRoberts();
afx_msg void OnPrewitt();
afx_msg void OnSobel();
afx_msg void OnKirsch();
afx_msg void OnTwo();
afx_msg void OnXihua();
afx_msg void OnMianji();
afx_msg void OnLength();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_IMAGEMEASUREDOC_H__4168C711_79EC_4973_A2F1_028A7EE035DE__INCLUDED_)