EdgeEnhanceDlg.h
上传用户:yatsl7111
上传日期:2007-01-08
资源大小:1433k
文件大小:3k
源码类别:

图形图象

开发平台:

Visual C++

  1. #if !defined(AFX_EDGEENHANCEDLG_H__EAD25DE9_A16B_404E_8246_F197F8B9A0CC__INCLUDED_)
  2. #define AFX_EDGEENHANCEDLG_H__EAD25DE9_A16B_404E_8246_F197F8B9A0CC__INCLUDED_
  3. #include "LineTrackBar.h" // Added by ClassView
  4. #include "SignEdit.h"
  5. #include "ModuleLogo.h"
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. // EdgeEnhanceDlg.h : header file
  10. //
  11. #define BLACK 0
  12. #define HIGHT 1
  13. #define VERT 2
  14. #define HORZ 3
  15. #define VERTHORZ 4
  16. #define NORTH 5
  17. #define NORTHEAST 6
  18. #define EAST 7
  19. #define SOUTH 8
  20. #define SOUTHEAST 9
  21. #define SOUTHWEST 10
  22. #define WEST 11
  23. #define NORTHWEST 12
  24. #define LAP1 13
  25. #define LAP2 14
  26. #define LAP3 15
  27. #define LAP4 16
  28. #define SOBEL 17
  29. #define HOUGH 18
  30. /////////////////////////////////////////////////////////////////////////////
  31. // CEdgeEnhanceDlg dialog
  32. class CEdgeEnhanceDlg : public CDialog
  33. {
  34. // Construction
  35. public:
  36. int m_nPosx;
  37. int m_nPosy;
  38. CPoint Oldpoint;
  39. CEdgeEnhanceDlg(CWnd* pParent = NULL);   // standard constructor
  40. // Dialog Data
  41. //{{AFX_DATA(CEdgeEnhanceDlg)
  42. enum { IDD = IDD_DLG_EDGE };
  43. CComboBox m_Combo_Filter;
  44. CSignEdit m_EditEdge;
  45. CString m_strEdge;
  46. BOOL m_Check_PreView;
  47. //}}AFX_DATA
  48. // Overrides
  49. // ClassWizard generated virtual function overrides
  50. //{{AFX_VIRTUAL(CEdgeEnhanceDlg)
  51. protected:
  52. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  53. //}}AFX_VIRTUAL
  54. // Implementation
  55. protected:
  56. // Generated message map functions
  57. //{{AFX_MSG(CEdgeEnhanceDlg)
  58. virtual BOOL OnInitDialog();
  59. virtual void OnCancel();
  60. virtual void OnOK();
  61. afx_msg void OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct);
  62. afx_msg void OnChangeEditEdge();
  63. afx_msg void OnTimer(UINT nIDEvent);
  64. afx_msg void OnSelchangeComboFilter();
  65. afx_msg void OnCheckPrview();
  66. afx_msg void OnMouseMove(UINT nFlags, CPoint point);
  67. afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  68. afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
  69. afx_msg void OnPaint();
  70. //}}AFX_MSG
  71. DECLARE_MESSAGE_MAP()
  72. private:
  73. BOOL m_bMouseShow;
  74. BOOL m_bMouseDown;
  75. BOOL m_bDetay;
  76. BOOL m_bDetax;
  77. int m_nEdge;
  78. int m_nComboIndex;
  79. CLineTrackBar m_wndEdgeBar;
  80. CModuleLogo   m_wndLogo;
  81. HCURSOR m_curDown,m_curUp,m_curNormal;
  82. CDC      m_MemDC;
  83. CBitmap  m_Bitmap;
  84. void PreViewEdge();
  85. void EdgeEnhance();
  86. void InitComBo();
  87. };
  88. //{{AFX_INSERT_LOCATION}}
  89. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  90. #endif // !defined(AFX_EDGEENHANCEDLG_H__EAD25DE9_A16B_404E_8246_F197F8B9A0CC__INCLUDED_)