ImageProcessingView.h
上传用户:wzyhdz
上传日期:2010-04-06
资源大小:164k
文件大小:2k
源码类别:

2D图形编程

开发平台:

Visual C++

  1. // ImageProcessingView.h : interface of the CImageProcessingView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_IMAGEPROCESSINGVIEW_H__613B030F_9C37_11D6_A6C4_00D0094CCE8A__INCLUDED_)
  5. #define AFX_IMAGEPROCESSINGVIEW_H__613B030F_9C37_11D6_A6C4_00D0094CCE8A__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. class CImageProcessingView : public CScrollView
  10. {
  11. protected: // create from serialization only
  12. CImageProcessingView();
  13. DECLARE_DYNCREATE(CImageProcessingView)
  14. // Attributes
  15. public:
  16. CImageProcessingDoc* GetDocument();
  17. // Operations
  18. public:
  19. // Overrides
  20. // ClassWizard generated virtual function overrides
  21. //{{AFX_VIRTUAL(CImageProcessingView)
  22. public:
  23. virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  24. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  25. protected:
  26. virtual void OnInitialUpdate(); // called first time after construct
  27. virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  28. virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  29. virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  30. //}}AFX_VIRTUAL
  31. // Implementation
  32. public:
  33. double* m_pDbImage;
  34. int m_nSupp;
  35. int m_nDWTCurDepth;
  36. virtual ~CImageProcessingView();
  37. #ifdef _DEBUG
  38. virtual void AssertValid() const;
  39. virtual void Dump(CDumpContext& dc) const;
  40. #endif
  41. protected:
  42. // Generated message map functions
  43. protected:
  44. //{{AFX_MSG(CImageProcessingView)
  45. afx_msg void OnEdgeCanny();
  46. //}}AFX_MSG
  47. DECLARE_MESSAGE_MAP()
  48. };
  49. #ifndef _DEBUG  // debug version in ImageProcessingView.cpp
  50. inline CImageProcessingDoc* CImageProcessingView::GetDocument()
  51.    { return (CImageProcessingDoc*)m_pDocument; }
  52. #endif
  53. /////////////////////////////////////////////////////////////////////////////
  54. //{{AFX_INSERT_LOCATION}}
  55. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  56. #endif // !defined(AFX_IMAGEPROCESSINGVIEW_H__613B030F_9C37_11D6_A6C4_00D0094CCE8A__INCLUDED_)