You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
984 B
C++

//////////////////////////////////////////////////////////////////////////////
//文件 OutlineFromBitmap.h
//主要功能:
//
//程序编写: 2005-12-07
/////////////////////////////////////////////////////////////////////////////
#pragma once
#include <AfxTempl.h>
namespace NFormatWriter
{
class COutlineFromBitmap
{
public:
COutlineFromBitmap(void);
virtual ~COutlineFromBitmap(void);
int SetBitmap(void FAR *lpBuffer, int nWidth, int nHeight);
void FindTextLine();
void Clear();
protected:
//数据操作
void SetData(int nRow,int nCol,BYTE value);
BYTE GetData(int nRow,int nCol);
BOOL IsNegPexil(int ip,int jp,int i,int j);
void AddTextLine();
BYTE* m_pData; //位图数据
int m_nWidth; //宽度
int m_nHeight; //高度
public:
typedef CArray<CPoint,CPoint> CPointArray;
typedef CArray<CPointArray*, CPointArray*> CPointArrayArray;
CPointArrayArray m_aryPoint;
CPointArray m_aryL;
CPointArray m_aryR;
void Rotate(double angle);
};
};
using namespace NFormatWriter;