📄 imageprocess.h
字号:
// ImageProcess.h: interface for the CImageProcess class.
//
//////////////////////////////////////////////////////////////////////
#include "CCapture.h"
//#define Capture // 对于没有OK系列PCI图象采集卡的机器此句注释掉
#ifndef _CPROCESS_H
#define _CPROCESS_H
#define MAX_NUM 3000
class CImageProcess : public CObject
{
protected:
BYTE *m_pDib,*m_pDib1;
BITMAPINFO *m_pBI;
BYTE *m_pBits;
int wid;
int hei;
int colors;
int bits;
int bpl;
int bpp;
POINT rect_p[2],R0,R1;
int rect_n,rect_flag;
POINT area_p[MAX_NUM];
int area_n,area_flag;
POINT area_pa[MAX_NUM];
int area_na;
int dot[MAX_NUM],dot_n;
POINT old_coor;
int old_flag;
int move_flag,moveX0,moveY0;
int moveX,moveY;
HWND hWndView;
#ifdef Capture
class CCapture OkCap;
int CaptureWidth,CaptureHeight;
int Wid,Hei;
int CaptureFlag;
#endif
public:
CImageProcess();
~CImageProcess();
BYTE* CreateDib(int wid, int hei, int bits);
void SetDibParam(BYTE *m_lpdib);
BYTE* GetPDib(int n);
void GetDibParam(BYTE *pDib,
BITMAPINFO* pBI,BYTE *pBits);
BOOL LoadBmp(const char *);
BOOL SaveBmp(const char *);
BOOL Draw(CDC* pDC);
void Refresh(void);
BOOL Invert(void);
BOOL ColorToGray(void);
void Flip(int n);
void FlipHorzontal(void);
void FlipVertical(void);
void Rotate180(void);
void Rotate90a(int n);
void Rotate90(void);
void Rotate270(void);
BYTE* ImageRotate(BYTE* pDib,double theta);
void Rotate15(void);
void Rotate30(void);
void Rotate45(void);
void Rotate60(void);
void Rotate75(void);
void Color(int n);
void ZoomIn(int n);
void ZoomOut(int n);
void Scale(double t);
BOOL PointInDib(int x,int y);
void SetHWnd(HWND hWnd);
void OkCapture(HWND hWnd);
void SingleCapto(HWND hWnd);
};
#endif //!_CPROCESS_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -