Advertisement
Guest User

Untitled

a guest
May 19th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.70 KB | None | 0 0
  1.  
  2. // PO1Dlg.h : header file
  3. //
  4.  
  5. #pragma once
  6. #include "ImgWnd.h"
  7. #include "afxwin.h"
  8. #include <GdiPlus.h>
  9. using namespace Gdiplus;
  10.  
  11.  
  12. // CPODlg dialog
  13. class CPODlg : public CDialogEx
  14. {
  15.     // Construction
  16. public:
  17.     CPODlg(CWnd* pParent = NULL);   // standard constructor
  18.  
  19.     // Dialog Data
  20.     enum { IDD = IDD_PO1_DIALOG };
  21.  
  22. protected:
  23.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  24.  
  25.  
  26.     // Implementation
  27. protected:
  28.     HICON m_hIcon;
  29.  
  30.     CImgWnd m_imgWndIN;
  31.     CImgWnd m_imgWndOUT;
  32.     Bitmap* m_pImgIN;
  33.     Bitmap* m_pImgOUT;
  34.     int m_imageW;
  35.     int m_imageH;
  36.  
  37.     CComboBox m_combo1;
  38.  
  39.     GdiplusStartupInput m_gdiplusStartupInput;
  40.     ULONG_PTR           m_gdiplusToken;
  41.  
  42.     BYTE GetPixelXY(int x, int y);
  43.     void SetPixelXY(int x, int y, BYTE J);
  44.     int GetEncoderClsid(const WCHAR* format, CLSID* pClsid);
  45.  
  46.     double m_sigma = 0.0;
  47.     BYTE CPODlg::GetPixelXY(Bitmap* img, int x, int y);
  48.     void CPODlg::SetPixelXY(Bitmap* img, int x, int y, BYTE Js);
  49.  
  50.  
  51.     // Generated message map functions
  52.     virtual BOOL OnInitDialog();
  53.     afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
  54.     afx_msg void OnPaint();
  55.     afx_msg HCURSOR OnQueryDragIcon();
  56.     DECLARE_MESSAGE_MAP()
  57.  
  58. public:
  59.     afx_msg void OnBnClickedButtonLoad();
  60.  
  61.     ////////////MOJE/////////////////////////////////
  62.     void dylatacja(Bitmap* in, Bitmap* out);
  63.     void dylatacjaB();
  64.     void erozja(Bitmap* in, Bitmap* out);
  65.     void otwarcie();
  66.     void zamkniecie();
  67.     void konturWew(Bitmap* in, Bitmap* out);
  68.     void konturZew(Bitmap* in, Bitmap* out);
  69.     /////////////////////////////////////////////////////
  70.  
  71.     afx_msg void OnBnClickedButtonProcess();
  72.     afx_msg void OnBnClickedButtonSave();
  73.     afx_msg void OnBnClickedButtonParams();
  74.     afx_msg void OnDestroy();
  75.  
  76. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement