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

📄 drawpicture.h

📁 《数字图象工程案例》原码
💻 H
字号:
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -