ShowDIBView.h
Upload User: hongxinly
Upload Date: 2022-06-13
Package Size: 2588k
Code Size: 3k
Category:

Special Effects

Development Platform:

Visual C++

  1. // ShowDIBView.h : interface of the CShowDIBView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_SHOWDIBVIEW_H__75A589AC_0FE7_11D1_813A_0020AF337325__INCLUDED_)
  5. #define AFX_SHOWDIBVIEW_H__75A589AC_0FE7_11D1_813A_0020AF337325__INCLUDED_
  6. #if _MSC_VER >= 1000
  7. #pragma once
  8. #endif // _MSC_VER >= 1000
  9. #include "DIB.h"
  10. class CShowDIBView : public CView
  11. {
  12. protected: // create from serialization only
  13. CShowDIBView();
  14. DECLARE_DYNCREATE(CShowDIBView)
  15. // Attributes
  16. public:
  17. CShowDIBDoc* GetDocument();
  18. // unsigned char *m_lpDIBBuffer;
  19. // BITMAPINFOHEADER *m_lpBIH;
  20. CDib m_Dib;
  21. // Operations
  22. public:
  23. // Overrides
  24. // ClassWizard generated virtual function overrides
  25. //{{AFX_VIRTUAL(CShowDIBView)
  26. public:
  27. virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  28. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  29. protected:
  30. //}}AFX_VIRTUAL
  31. // Implementation
  32. public:
  33. virtual ~CShowDIBView();
  34. #ifdef _DEBUG
  35. virtual void AssertValid() const;
  36. virtual void Dump(CDumpContext& dc) const;
  37. #endif
  38. protected:
  39. // Generated message map functions
  40. protected:
  41. //{{AFX_MSG(CShowDIBView)
  42. afx_msg void OnFileOpen();
  43. afx_msg void OnStyleStretched();
  44. afx_msg void OnStyleNormal();
  45. afx_msg void OnFileSave();
  46. afx_msg void OnPROCESS2value();
  47. afx_msg void OnInvert();
  48. afx_msg void OnVMax();
  49. afx_msg void OnVMin();
  50. afx_msg void OnVAve();
  51. afx_msg void OnReverse();
  52. afx_msg void OnPointLiner();
  53. afx_msg void OnHistogram();
  54. afx_msg void OnHistEqua();
  55. afx_msg void OnGeomTran();
  56. afx_msg void OnGeomZoom();
  57. afx_msg void OnGeomRota();
  58. afx_msg void OnFft();
  59. afx_msg void OnDct();
  60. afx_msg void OnFreqWalh();
  61. afx_msg void OnFreqWave();
  62. afx_msg void OnENHAAverF();
  63. afx_msg void OnENHAMidianF();
  64. afx_msg void OnEnhaSobel();
  65. afx_msg void OnEnhaLaplace();
  66. afx_msg void OnRestoreRandomnoise();
  67. afx_msg void OnRestoreSaltnoise();
  68. afx_msg void OnRestoreInverse();
  69. afx_msg void OnRestoreWiener();
  70. afx_msg void OnRecon();
  71. afx_msg void OnHuffman();
  72. afx_msg void OnRunlength();
  73. afx_msg void OnAlgorith();
  74. afx_msg void OnLzw();
  75. afx_msg void OnJpeg();
  76. //}}AFX_MSG
  77. DECLARE_MESSAGE_MAP()
  78. private:
  79. int ImageStyle; // 0: Normal ; non_zero: Stretched
  80. };
  81. #ifndef _DEBUG  // debug version in ShowDIBView.cpp
  82. inline CShowDIBDoc* CShowDIBView::GetDocument()
  83.    { return (CShowDIBDoc*)m_pDocument; }
  84. #endif
  85. /////////////////////////////////////////////////////////////////////////////
  86. //{{AFX_INSERT_LOCATION}}
  87. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  88. #endif // !defined(AFX_SHOWDIBVIEW_H__75A589AC_0FE7_11D1_813A_0020AF337325__INCLUDED_)