⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dipdemodlg.h

📁 阮秋琦的数字图像处理学一书所附的代码
💻 H
字号:
// DIPDemoDlg.h : header file
//

#if !defined(AFX_DIPDEMODLG_H__8890E7E7_2A82_11D4_A24C_0000E8235905__INCLUDED_)
#define AFX_DIPDEMODLG_H__8890E7E7_2A82_11D4_A24C_0000E8235905__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CDIPDemoDlg dialog
#include "ImageWnd.h"
class CDIPDemoDlg : public CDialog
{
// Construction
public:
	BOOL Grabbing;
	void Grab();
	void Snap();
	void Scan();
	void PseudoColor();
	void PrintImages();
	void SaveAs();
	CString FileName;
	void Edge();
	void BiValue();
	void Restore();
	void Copy();
	void BrightModify();
	void Noise(int type);
	void NoColor();
	void LoadBitmap();
	void Paste();
	void Transform();
	void Smooth();
	void HistogramEq();
	void Geometrical();
	void OpenFile();
	int HitTestButton(int x0,int y0);
	int nWidth;
	int nHeight;
	int nLen;
	int nByteWidth;
//	BYTE *lpPoints;
	BYTE *lpBackup;
	BYTE *lpBitmap;
	BYTE *lpBits;

	void MenuButton(int pos,int status);
	void AddButton(int x,int y,int ID,const char *caption);
	CDIPDemoDlg(CWnd* pParent = NULL);	// standard constructor
	char buttoncaption[50][30];
	int buttonid[50];
	int buttonx[50];
	int buttony[50];
	int buttonptr;
	int menufocus,menuclick;
	CImageWnd source,dest;
// Dialog Data
	//{{AFX_DATA(CDIPDemoDlg)
	enum { IDD = IDD_DIPDEMO_DIALOG };
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDIPDemoDlg)
	public:
	virtual void WinHelp(DWORD dwData, UINT nCmd = HELP_CONTEXT);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CDIPDemoDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnClick(WPARAM pos,LPARAM dump);
	afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
	afx_msg void OnDestroy();
	virtual void OnOK();
	virtual void OnCancel();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DIPDEMODLG_H__8890E7E7_2A82_11D4_A24C_0000E8235905__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -