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

📄 imagepview.h

📁 这是VC++ 2003.net图像处理的光盘源程序!!!非常好的
💻 H
字号:
// ImagePView.h : interface of the CImagePView class
//
/////////////////////////////////////////////////////////////////////////////

#include "Image.h"

#if !defined(AFX_ImagePVIEW_H__1B803495_4335_49E3_9465_BB0DC206C9D7__INCLUDED_)
#define AFX_ImagePVIEW_H__1B803495_4335_49E3_9465_BB0DC206C9D7__INCLUDED_

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

class CImagePView : public CView
{
friend class CImagePDoc;
		
protected: // create from serialization only
	CImagePView();
	DECLARE_DYNCREATE(CImagePView)

// Attributes
public:
	CImagePDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CImagePView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CImagePView();

private:
  	int			m_nGraphicFlag;
	int			m_nFlag;
	int			m_nSize;
	double		m_fAlpha;
	double		m_fTheta;
	int			m_nFArea;
	int			m_iFirstX;
	int			m_iFirstY;
	int			m_iSecondX;
	int			m_iSecondY;
	int			m_iPrevX1;
	int			m_iPrevY1;
	int			m_iPrevX2;
	int			m_iPrevY2;
   
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CImagePView)
 	afx_msg void On256colorImageExam();
	afx_msg void OnTrueColorImageExam();
	afx_msg void OnRefresh();

	afx_msg void OnImagePalette();

	afx_msg void OnGrayPalette();
	afx_msg void OnBluePalette();
	afx_msg void OnDefaultPalette();
	afx_msg void OnRestorePalette();
	afx_msg void OnMovPalette();

	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnPasteRefresh();
	afx_msg void OnConservationImage();
	afx_msg void OnCloseImage();
	afx_msg void OnDrawRefresh();
	afx_msg void OnClearWindow();
	afx_msg void OnSelectWindow();
 	afx_msg void OnSelectImage();
	afx_msg void OnImageParament();

 	afx_msg void OnDrawPixel();
 	afx_msg void OnDrawText();
	afx_msg void OnGraphFill();
 	afx_msg void OnCopyBitmap();
	afx_msg void OnRandCircle();
 
	afx_msg void OnUpdateRefresh(CCmdUI *pCmdUI);
	afx_msg void OnUpdateImagePalette(CCmdUI *pCmdUI);
	afx_msg void OnUpdateGrayPalette(CCmdUI *pCmdUI);
	afx_msg void OnUpdateBluePalette(CCmdUI *pCmdUI);
	afx_msg void OnUpdateDefaultPalette(CCmdUI *pCmdUI);
	afx_msg void OnUpdateRestorePalette(CCmdUI *pCmdUI);
	afx_msg void OnUpdateMovPalette(CCmdUI *pCmdUI);
	afx_msg void OnUpdatePasteRefresh(CCmdUI *pCmdUI);
 	afx_msg void OnUpdateConservationImage(CCmdUI *pCmdUI);
	afx_msg void OnUpdateCloseImage(CCmdUI *pCmdUI);
	afx_msg void OnUpdateDrawRefresh(CCmdUI *pCmdUI);
	afx_msg void OnUpdateSelectImage(CCmdUI *pCmdUI);
	afx_msg void OnUpdateImageParament(CCmdUI *pCmdUI);
   
	afx_msg void OnColorToGray();
	afx_msg void OnUpdateColorToGray(CCmdUI *pCmdUI);
	afx_msg void OnImageInvert();
	afx_msg void OnColorToMonochrom();
	afx_msg void OnUpdateImageInvert(CCmdUI *pCmdUI);
	afx_msg void OnUpdateColorToMonochrom(CCmdUI *pCmdUI);

	afx_msg void OnUpdateBinaryImage(CCmdUI *pCmdUI);
	afx_msg void OnUpdate16colorImage(CCmdUI *pCmdUI);
 
	afx_msg void OnFlipHorizon();
	afx_msg void OnFlipVert();
	afx_msg void OnRotate90();
	afx_msg void OnRotate180();
	afx_msg void OnRotate270();
	afx_msg void OnZoomIn();
	afx_msg void OnZoomOut();
	afx_msg void OnUpdateFlipHorizon(CCmdUI *pCmdUI);
	afx_msg void OnUpdateFlipVert(CCmdUI *pCmdUI);
	afx_msg void OnUpdateRotate90(CCmdUI *pCmdUI);
	afx_msg void OnUpdateRotate180(CCmdUI *pCmdUI);
	afx_msg void OnUpdateRotate270(CCmdUI *pCmdUI);
	afx_msg void OnUpdateZoomIn(CCmdUI *pCmdUI);
	afx_msg void OnUpdateZoomOut(CCmdUI *pCmdUI);

 	afx_msg void OnIndexImage();
	afx_msg void OnUpdateIndexImage(CCmdUI *pCmdUI);
	afx_msg void OnUpdateTrueColorImage(CCmdUI *pCmdUI);
	afx_msg void OnImageRotate();
	afx_msg void OnImageScale();
	afx_msg void OnUpdateImageRotate(CCmdUI *pCmdUI);
	afx_msg void OnUpdateImageScale(CCmdUI *pCmdUI);
	afx_msg void OnAreaSelect();
	afx_msg void OnAreaCut();
	afx_msg void OnBitmapCopy();
	afx_msg void OnAreaWander();
	afx_msg void OnAreaMove();
	afx_msg void OnUpdateAreaSelect(CCmdUI *pCmdUI);
	afx_msg void OnUpdateAreaCut(CCmdUI *pCmdUI);
	afx_msg void OnUpdateBitmapCopy(CCmdUI *pCmdUI);
	afx_msg void OnUpdateAreaWander(CCmdUI *pCmdUI);
	afx_msg void OnUpdateAreaMove(CCmdUI *pCmdUI);
	afx_msg void OnPixelValue();
	afx_msg void OnUpdatePixelValue(CCmdUI *pCmdUI);
	afx_msg void OnImageMasaic();
	afx_msg void OnUpdateImageMasaic(CCmdUI *pCmdUI);

	afx_msg void WriteTitle(CImage* pImg,CString FileName,CString str0);
	afx_msg void WorkCanvusToWindow();
  	afx_msg void DisplayPalette(RGBQUAD	*ColorTab,int colors,int x,int y,int w,int h);
	afx_msg void ClearWorkCanvus(void);

 	afx_msg void Zoom(int n);
  	afx_msg void DisplayPixelValue(int x,int y,int n);

	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);

	afx_msg void OnAreaCopy();
	afx_msg void OnAreaPaste();
	afx_msg void OnUpdateAreaCopy(CCmdUI *pCmdUI);
	afx_msg void OnUpdateAreaPaste(CCmdUI *pCmdUI);
	afx_msg void OnHatchFill();
	afx_msg void OnDrawLine();
	afx_msg void OnPatternFill();

	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in ImagePView.cpp
inline CImagePDoc* CImagePView::GetDocument()
   { return (CImagePDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

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

#endif // !defined(AFX_ImagePVIEW_H__1B803495_4335_49E3_9465_BB0DC206C9D7__INCLUDED_)

⌨️ 快捷键说明

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