drawpicture.h
来自「《数字图象工程案例》原码」· C头文件 代码 · 共 47 行
H
47 行
// DrawPicture.h: interface for the DrawPicture class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_DRAWPICTURE_H__842B5DA5_75F5_4581_BBA0_96B1750F5683__INCLUDED_)
#define AFX_DRAWPICTURE_H__842B5DA5_75F5_4581_BBA0_96B1750F5683__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
typedef struct
{
CPoint location;
PICTURECOLOR pc;
}RECTINFO;
typedef struct
{
RECTINFO RectsInfo[LINENUM*5];
int RectLen;
CPoint LeftTop;
CPoint RightBottom;
CPoint CurrentMouse;
bool IsValide;
int Linelen;
bool IsFinish;
}RECTSINFO;
class DrawPicture
{
public:
//void AntRectang(CDC *pDC,RECTSINFO rectinfo,CPoint Scroll);
void Rectang(CDC *pDC,CPoint LeftTop,CPoint RightBottom,COLORREF rgb,int steplen,float m_jwm,bool Saveornot,CPoint Scroll);
void Polygon(CDC *pDC,COLORREF rgb,float m_jwm,bool Saveornot,CPoint Scroll);
void Circle(CDC *pDC,CPoint MousePosition,COLORREF rgb,float m_jwm,bool saveornot,CPoint scroll,RECTSINFO* pCircle);
UINT PaneNum;
CPoint LinePath[LINENUM*4];
void Line(CPoint pFrom,CPoint pEnd,CDC *dc,COLORREF rgb,int steplen,float m_jwm,CPoint scroll,bool Saveornot);
DrawPicture();
virtual ~DrawPicture();
};
#endif // !defined(AFX_DRAWPICTURE_H__842B5DA5_75F5_4581_BBA0_96B1750F5683__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?