fasthittest.h

来自「基于最小二乘法圆的拟合」· C头文件 代码 · 共 33 行

H
33
字号
// FastHitTest.h: interface for the FastHitTest class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_FASTHITTEST_H__986E9DC6_3634_415F_AB8A_110DCE55D4A3__INCLUDED_)
#define AFX_FASTHITTEST_H__986E9DC6_3634_415F_AB8A_110DCE55D4A3__INCLUDED_

class FastHitTest  
{
public:
	
	FastHitTest(const Region* pRegion, Graphics* pGraphics);
	FastHitTest(const GraphicsPath* pPath,BOOL includeEdge = FALSE/*,int edgeWidth = 1,BOOL isSkelecton = FALSE*/);
	FastHitTest(const Point *pPoint, int num,BOOL includeEdge = FALSE/*,int edgeWidth = 1,BOOL isSkelecton = FALSE*/);
	virtual ~FastHitTest();

	BOOL IsVisible(int x, int y);
	Bitmap* m_RegionBuffer;
	Rect m_Bounds;

private:
	void initColor();
	void init(const GraphicsPath* pPath,BOOL includeEdge = FALSE);
	void Lock();

	Color m_BackgroundColor;
	Color m_ForegroundColor;
	BitmapData m_Data;

};

#endif // !defined(AFX_FASTHITTEST_H__986E9DC6_3634_415F_AB8A_110DCE55D4A3__INCLUDED_)

⌨️ 快捷键说明

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