Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // PO1Dlg.h : header file
- //
- #pragma once
- #include "ImgWnd.h"
- #include "afxwin.h"
- #include <GdiPlus.h>
- using namespace Gdiplus;
- // CPODlg dialog
- class CPODlg : public CDialogEx
- {
- // Construction
- public:
- CPODlg(CWnd* pParent = NULL); // standard constructor
- // Dialog Data
- enum { IDD = IDD_PO1_DIALOG };
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- // Implementation
- protected:
- HICON m_hIcon;
- CImgWnd m_imgWndIN;
- CImgWnd m_imgWndOUT;
- Bitmap* m_pImgIN;
- Bitmap* m_pImgOUT;
- int m_imageW;
- int m_imageH;
- CComboBox m_combo1;
- GdiplusStartupInput m_gdiplusStartupInput;
- ULONG_PTR m_gdiplusToken;
- BYTE GetPixelXY(int x, int y);
- void SetPixelXY(int x, int y, BYTE J);
- int GetEncoderClsid(const WCHAR* format, CLSID* pClsid);
- double m_sigma = 0.0;
- BYTE CPODlg::GetPixelXY(Bitmap* img, int x, int y);
- void CPODlg::SetPixelXY(Bitmap* img, int x, int y, BYTE Js);
- // Generated message map functions
- virtual BOOL OnInitDialog();
- afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
- afx_msg void OnPaint();
- afx_msg HCURSOR OnQueryDragIcon();
- DECLARE_MESSAGE_MAP()
- public:
- afx_msg void OnBnClickedButtonLoad();
- ////////////MOJE/////////////////////////////////
- void dylatacja(Bitmap* in, Bitmap* out);
- void dylatacjaB();
- void erozja(Bitmap* in, Bitmap* out);
- void otwarcie();
- void zamkniecie();
- void konturWew(Bitmap* in, Bitmap* out);
- void konturZew(Bitmap* in, Bitmap* out);
- /////////////////////////////////////////////////////
- afx_msg void OnBnClickedButtonProcess();
- afx_msg void OnBnClickedButtonSave();
- afx_msg void OnBnClickedButtonParams();
- afx_msg void OnDestroy();
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement