求图形外轮廓线的一个类
用图形剪切了做软件界面是个常用的手段,算法也有很多,这个算做原创,非常简单,图形不是很复杂的情况下效率比较高(也是一般的情况).h
#ifndef _UtilClsH
#define _UtilClsH
#include <vcl.h>
//---------------------------------------------------------------------------
class UtilCls
{
public:
static TPoint* ComputeOutline(TImage * image, TColor crKey, int& count);
protected:
private:
static TPoint LocateFirstPoint(TImage * image, TColor crKey);
static TPoint LocatePoint(TPoint curr, int& orgin, TImage * image, TColor crKey);
};
#endif
.cpp
#pragma hdrstop
#include "_UtilCls.h" 请人回答:):):):):):):):):):) 求关注:'(:'(:'(
页:
[1]