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.
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
//<2F>ļ<EFBFBD> OutlineFromBitmap.h
|
|
|
|
|
|
//<2F><>Ҫ<EFBFBD><D2AA><EFBFBD><EFBFBD>:
|
|
|
|
|
|
//
|
|
|
|
|
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>д: 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:
|
|
|
|
|
|
//<2F><><EFBFBD>ݲ<EFBFBD><DDB2><EFBFBD>
|
|
|
|
|
|
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; //λͼ<CEBB><CDBC><EFBFBD><EFBFBD>
|
|
|
|
|
|
int m_nWidth; //<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
int m_nHeight; //<2F>߶<EFBFBD>
|
|
|
|
|
|
|
|
|
|
|
|
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;
|