📄 iprocesspview.h
字号:
// IProcessPView.h : CIProcessPView 类的接口
//
#pragma once
class CIProcessPView : public CView
{
private:
int m_nGraphicFlag;
int m_nFlag;
int m_nSize;
double m_fAlpha;
double m_fTheta;
int m_iFirstX;
int m_iFirstY;
int m_iSecondX;
int m_iSecondY;
int m_iPrevX1;
int m_iPrevY1;
int m_iPrevX2;
int m_iPrevY2;
protected: // 仅从序列化创建
CIProcessPView();
DECLARE_DYNCREATE(CIProcessPView)
// 属性
public:
CIProcessPDoc* GetDocument() const;
// 操作
public:
// 重写
public:
virtual void OnDraw(CDC* pDC); // 重写以绘制该视图
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);
// 实现
public:
virtual ~CIProcessPView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// 生成的消息映射函数
protected:
DECLARE_MESSAGE_MAP()
public:
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 OnMovPalette();
afx_msg void OnRestorePalette();
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);
void WriteTitle(CImage* pImg,CString FileName,CString str0);
void WorkCanvusToWindow();
void DisplayPalette(RGBQUAD *ColorTab,int nNumColors,int x,int y,int w,int h);
void ClearWorkCanvus(void);
afx_msg void OnGrayImage();
afx_msg void OnUpdateGrayImage(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);
void FlipCV(int n);
void Rotate90CV(int n);
void Zoom(int n);
void DisplayValue(int x,int y,int n);
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 OnAreaBrowse();
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 OnUpdateAreaBrowse(CCmdUI *pCmdUI);
afx_msg void OnUpdateAreaMove(CCmdUI *pCmdUI);
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 OnPixelValue();
afx_msg void OnUpdatePixelValue(CCmdUI *pCmdUI);
afx_msg void OnImageMasaic();
afx_msg void OnUpdateImageMasaic(CCmdUI *pCmdUI);
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();
};
#ifndef _DEBUG // IProcessPView.cpp 的调试版本
inline CIProcessPDoc* CIProcessPView::GetDocument() const
{ return reinterpret_cast<CIProcessPDoc*>(m_pDocument); }
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -