1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525
|
/*
Copyright (c) 1993-2008, Cognitive Technologies
All rights reserved.
Разрешается повторное распространение и использование как в виде исходного кода,
так и в двоичной форме, с изменениями или без, при соблюдении следующих условий:
* При повторном распространении исходного кода должны оставаться указанное
выше уведомление об авторском праве, этот список условий и последующий
отказ от гарантий.
* При повторном распространении двоичного кода в документации и/или в
других материалах, поставляемых при распространении, должны сохраняться
указанная выше информация об авторском праве, этот список условий и
последующий отказ от гарантий.
* Ни название Cognitive Technologies, ни имена ее сотрудников не могут
быть использованы в качестве средства поддержки и/или продвижения
продуктов, основанных на этом ПО, без предварительного письменного
разрешения.
ЭТА ПРОГРАММА ПРЕДОСТАВЛЕНА ВЛАДЕЛЬЦАМИ АВТОРСКИХ ПРАВ И/ИЛИ ДРУГИМИ ЛИЦАМИ "КАК
ОНА ЕСТЬ" БЕЗ КАКОГО-ЛИБО ВИДА ГАРАНТИЙ, ВЫРАЖЕННЫХ ЯВНО ИЛИ ПОДРАЗУМЕВАЕМЫХ,
ВКЛЮЧАЯ ГАРАНТИИ КОММЕРЧЕСКОЙ ЦЕННОСТИ И ПРИГОДНОСТИ ДЛЯ КОНКРЕТНОЙ ЦЕЛИ, НО НЕ
ОГРАНИЧИВАЯСЬ ИМИ. НИ ВЛАДЕЛЕЦ АВТОРСКИХ ПРАВ И НИ ОДНО ДРУГОЕ ЛИЦО, КОТОРОЕ
МОЖЕТ ИЗМЕНЯТЬ И/ИЛИ ПОВТОРНО РАСПРОСТРАНЯТЬ ПРОГРАММУ, НИ В КОЕМ СЛУЧАЕ НЕ
НЕСЁТ ОТВЕТСТВЕННОСТИ, ВКЛЮЧАЯ ЛЮБЫЕ ОБЩИЕ, СЛУЧАЙНЫЕ, СПЕЦИАЛЬНЫЕ ИЛИ
ПОСЛЕДОВАВШИЕ УБЫТКИ, СВЯЗАННЫЕ С ИСПОЛЬЗОВАНИЕМ ИЛИ ПОНЕСЕННЫЕ ВСЛЕДСТВИЕ
НЕВОЗМОЖНОСТИ ИСПОЛЬЗОВАНИЯ ПРОГРАММЫ (ВКЛЮЧАЯ ПОТЕРИ ДАННЫХ, ИЛИ ДАННЫЕ,
СТАВШИЕ НЕГОДНЫМИ, ИЛИ УБЫТКИ И/ИЛИ ПОТЕРИ ДОХОДОВ, ПОНЕСЕННЫЕ ИЗ-ЗА ДЕЙСТВИЙ
ТРЕТЬИХ ЛИЦ И/ИЛИ ОТКАЗА ПРОГРАММЫ РАБОТАТЬ СОВМЕСТНО С ДРУГИМИ ПРОГРАММАМИ,
НО НЕ ОГРАНИЧИВАЯСЬ ЭТИМИ СЛУЧАЯМИ), НО НЕ ОГРАНИЧИВАЯСЬ ИМИ, ДАЖЕ ЕСЛИ ТАКОЙ
ВЛАДЕЛЕЦ ИЛИ ДРУГОЕ ЛИЦО БЫЛИ ИЗВЕЩЕНЫ О ВОЗМОЖНОСТИ ТАКИХ УБЫТКОВ И ПОТЕРЬ.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of the Cognitive Technologies nor the names of its
contributors may be used to endorse or promote products derived from this
software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
// RShellLinesCom.h: interface for the ShellLine's functions.
//
//////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////
//
// Description: ShellLine's functions and classes definition
//
// Implemented: by B.M. Shahverdiev
//
//
#include "globus.h"
#ifdef __RSHELLLINES_EXPORTS__
#define RSHELLLINES_FUNC FUN_EXPO
#else
#define RSHELLLINES_FUNC FUN_IMPO
#endif
#define VerticalLine 0
#define HorizantalLine 1
#define HalfOtstup 4
#define Otstup 4
#define MaxNumber 4
#define MIN_H_NO_CLEAN 10
#include "cline.h"
#include "cpage.h"
#include "compat_defs.h"
//#include "decl.h"
//#define SecondPath 2
//#define ThirdPath 3
/*
struct CLineImage
{
int Wide;
int Height;
int bytewide;
uchar* lp;
int fl_delete;
uchar* pmasp;
int size_mas;
CLineImage();
~CLineImage();
int SetDibPtr(uchar* lpDibData,int wide,int heght,int bwide);
uchar* GetPmasp(Rect32* pRc);
};
*/
struct DOT_STRUCT
{
int32_t left;
int32_t right;
int32_t top;
int32_t bottom;
int32_t i_left;
int32_t i_top;
int32_t i_right;
Bool flag;
};
/*
class CSL_POLY:public CObject
{
public:
CSL_POLY(){count=4;}
~CSL_POLY(){}
int16_t count;
Point32 Vertex[MaxNumber];
};
*/
//extern "C" {
typedef struct group_lines_mass
{
CLINE_handle* hLinesMass;
int numder_of_lines;
int number_of_cp;
int32_t* m_arCutPointsL;
int32_t* m_arCutPointsR;
int32_t* m_arFrequency;
int32_t m_top;
int32_t m_bottom;
int32_t GroupOffset;
int32_t GroupVerOffset;
} GLM;
/////////////////////////////////////////////////////////////////////////////
// Interval's class
/*class RSHELLLINES_CLASS CInterval:public CObject
{
public:
CInterval(){}
~CInterval(){}
int32_t Pos;
int32_t Lent;
};
*/
/////////////////////////////////////////////////////////////////////////////
// Rect32's class
/*class RSHELLLINES_CLASS CPRect32:public CObject
{
public:
CPRect32(){m_flag=TRUE;};
~CPRect32(){};
Rect32 rect;
Bool m_flag;
};
*/
/////////////////////////////////////////////////////////////////////////////
// Event's class
/*class RSHELLLINES_CLASS CEvent:public CObject
{
public:
CEvent();
~CEvent();
Bool Hori; //гориз.(1) или вертик.(0)
Bool Increase; //наращивать или уменьшать уровень
int32_t Lev_0; //уровень первого интервала
int Width;
int32_t EventLength;
CObArray m_arIntervals;
int GetCountIntervals(void);
CInterval* GetInterval(int i);
CInterval* GetNewInterval(void);
*/
void SetEventWidth(CLINE_handle hEvent, DEvent* pEvent, uint32_t* LineHist, uint32_t RectBegin, uint32_t LineLength); //
/*};
*/
/////////////////////////////////////////////////////////////////////////////
// Stripe's class
/*class RSHELLLINES_API CStripe:public CObject
{
public:
CStripe();
~CStripe();
int32_t Level; //уровень полосы
CObArray m_arIntervals;
int GetCountIntervals(void);
CInterval* GetInterval(int i);
CInterval* GetNewInterval(void);
};
*/
/////////////////////////////////////////////////////////////////////////////
// CutPoint's class
//#define DirectedUpwards 0 //defines for Direction
//#define DirecteDownwards 1
//#define DirectedForBothSides 2
/*
class RSHELLLINES_CLASS CCutPoint:public CObject
{
public:
CCutPoint();
~CCutPoint();
int Direction;
int32_t Level; //уровень полосы
CObArray m_arIntervals;
int GetCountIntervals(void);
CInterval* GetInterval(int i);
CInterval* GetNewInterval(void);
};
*/
/////////////////////////////////////////////////////////////////////////////
// Component's class
#define InitialPointHasCrossPoint 1 //defines for Component
#define MiddleHasCrossPoint 2
#define EndPointHasCrossPoint 4
/*
class RSHELLLINES_API CComponent:public CObject
{
public:
CComponent();
~CComponent();
int CrossPointFlag;
int32_t BeginPoint;
int32_t EndPoint;
};
*/
/////////////////////////////////////////////////////////////////////////////
// СDotLines's class
/*class RSHELLLINES_API CDotLine:public CObject
{
public:
CDotLine();
~CDotLine();
CPRect32 m_LeftDot; // левая точка
CPRect32 m_RightDot; // правая точка
Bool m_LeftDotState; //FALSE-линия не имеет лев. продольжение
Bool m_RightDotState; //FALSE-линия не имеет прав.продольжение
CObArray m_arDots; // все точки без сортировки
CWordArray m_dist; // все расстояния между точками
Bool m_Flag; //Если == FALSE то плохая точечная линия
int GetCountOfDots(void);
CPRect32* GetDot(int i);
void AddDot(CPRect32*);
void SetLeftDot(CPRect32* in_dot);
void SetRightDot(CPRect32* in_dot);
};
*/
// For Flags
//#define LI_IsTrue 0x00000040 // правильно выделенная линия
//#define LI_IsFalse 0x00000080 // не линия
//#define LI_Pointed 0x00001000 // точечная
// For Status
#define ST_Unknown 0x00000000 //
#define ST_Basil_Short 0x00000001 //
#define ST_Good 0x00000002 //
#define ST_Bad 0x00000004 //
/////////////////////////////////////////////////////////////////////////////
// Line's class
//class CPageLines;
/*
class RSHELLLINES_API CLine:public CObject
{
public:
CLine();
~CLine();
*/
RSHELLLINES_FUNC(void) InitLine(DLine* linedata); //
/* uint32_t Flags; // common use info
uint32_t Tail; // остаток линии за таблицой
Point32 BeginPoint;
Point32 EndPoint;
Rect32 rect; // прямоугольник линии
Bool ProcessingType; // тип обработки линии(гор. или верт.)
int Width;
int32_t LineEventsLength; // сумма черных точек линии
double Degree;
int RelationshipIndex; // индекс коробки компонент
Bool FlagCalculatedWidth;
Bool FlagExtensible;
Bool FlagDot; // устанавливается когда линия точечная
Bool FlagBad;
Bool FlagLongStrip;
int PathNumber; // номер прохода
NR_SimpLine Line; // простейшее описание линии
NR_SimpLine LineMid; // Средние точки линии
int32_t Status; // история линии в программе
NORM_DATATYPES Type; // *Unknown, *Simple, *Defis, *Pointed
LINE_DIR Dir;
char Qual; // quality (or estimation) at percents
char Dens; // density at percents
void *Specline; // (NR_DefiLine), (NR_PoinLine)
CSL_POLY poly;
CObArray m_arStripes; // все полосы и интервалы
CObArray m_arStripesVerticalLine; // все полосы и интервалы для вертикальной линии
// CObArray m_arCorrectedStripes; // полосы и интервалы после коррекции
CObArray m_arEvents; // фрагменты
CObArray m_arCutPoints; // точки пересечения с ортогональными линиями
CObArray m_arComponents; // компоненты линии с признаками точек пересечения
//take'em away! CWordArray m_arSeparationPoints; // точки деления линии на подлинии(компоненты)
CWordArray m_arFriendsIndex; // индексы дружественных линий
*/
Bool SetLineNormDataTypes(NORM_DATATYPES, DLine* line); //
/* NORM_DATATYPES GetLineNormDataTypes(void);
int GetCountStripes(void);
CStripe* GetStripe(int i);
CStripe* GetNewStripe();
int GetCountStripesVerticalLine(void);
CStripe* GetStripeVerticalLine(int i);
*/ void GetNewStripeVerticalLine(DEvent* eventdata); //
/* int GetCountEvents(void);
CEvent* GetNewEvent();
CEvent* GetEvent(int i);
// int GetCountCorrectedStripes(void);
// CStripe* GetNewCorrectedStripe();
// CStripe* GetCorrectedStripe(int i);
int GetCountCutPoints(void);
CCutPoint* GetNewCutPoint();
CCutPoint* GetCutPoint(int i);
int GetCountComponents(void);
CComponent* GetNewComponent();
CComponent* GetComponent(int i);
*/
void SetLineProcessingType(DLine* linedata); //
void SetWidth(CLINE_handle line, DLine* pCLine); //
void SetLength(CLINE_handle line, DLine* pCLine); //
void SetComponentsCrossPointFlag(CLINE_handle line, DLine* pCLine); //
RSHELLLINES_FUNC(Bool32) CheckSeparationPoints(CLINE_handle hLine, CLINE_handle hComp = NULL); //
void SetSeparationPoints(CLINE_handle hContainer, CLINE_handle hLine, DLine* pCLine, Bool32 PLines); //
void SetCutPoints(CLINE_handle line, DLine* pCLine); //
void SetNewLine(CLINE_handle hContainer, CPDLine pCLine, int32_t IntervalBeg, int32_t IntervalEnd, CLINE_handle hLineOld, Bool32 PossibleSymbolAboveLine); //
void SetDegree(DLine* line); //
Bool CheckPoint(CLINE_handle line, int CurPoint); //
// void CheckShortVerticalLines(CPageLines* PLines);
void ConvertStructs(CLINE_handle line, DLine* pCLine, int32_t nIncline); //
void FindTailComponent(CLINE_handle line, DLine* pCLine); //
void GetCorrectLine_End_X(CLINE_handle line, DLine* pCLine); //
void GetComponentBeg_Y_End_Y(int32_t Beg, int32_t End, int32_t* Beg_X, int32_t* End_X, int32_t* Beg_Y, int32_t* End_Y, CLINE_handle hLine, Bool32 ProcessingType); //
Bool32 IfExistCutLine(CLINE_handle hContainer, DLine* pCLine, int left,int right); //
/* int SetVStripeMasMaxSize(int size);
};
*/
/////////////////////////////////////////////////////////////////////////////
// CGroupOfFriendLines class
/*class RSHELLLINES_CLASS CGroupOfFriendLines:public CObject
{
public:
CGroupOfFriendLines();
~CGroupOfFriendLines();
CWordArray m_arFriendsIndex; // индексы дружественных линий (m_arLines)
CWordArray m_arCutPointsL; // точки пересечения (left for interval)
CWordArray m_arCutPointsR; // точки пересечения (right for interval)
CWordArray m_arFrequency; // и частота
double Degree; // +- 0.05
Bool ProcessingType; // тип обработки линий(гор. или верт.)
int RelationshipIndex; // индекс коробки компонент
uint16_t m_top;
uint16_t m_bottom;
int GetCountOfFriendLines(void);
};
*/
/////////////////////////////////////////////////////////////////////////////
// CGroupOfExtensibleLines class
/*class RSHELLLINES_CLASS CGroupOfExtensibleLines:public CObject
{
public:
CGroupOfExtensibleLines();
~CGroupOfExtensibleLines();
double Degree; // +- 0.05
Bool ProcessingType; // тип обработки линий(гор. или верт.)
CWordArray m_arFriendsIndex; // индексы дружественных линий (m_arLines)
int GetCountOfExtensibleLines(void);
};
*/
/////////////////////////////////////////////////////////////////////////////
// PageLine's class
/*class RSHELLLINES_CLASS CPageLines:public CObject
{
public:
CPageLines();
~CPageLines();
Bool FlagDot; //Если == TRUE то проверяется точечные линии
CObArray m_arLines;
CObArray m_arNewDotLines; // точечные линии собранные из коробок компонент
CObArray m_arGroupOfFriendLines;
CObArray m_arGroupOfExtensibleLines;
CObArray m_arComps;
CObArray m_arDotComps;
CLineImage* m_pImage;
int GetCountLines(void);
CLine* GetNewLine(void);
CLine* GetLine(int i);
int GetCountNewDotLines(void);
CDotLine* GetNewDotLine(void);
CDotLine* GetDotLine(int i);
void DrowRectForChains(void);
int GetCountGroupOfFriendLines(void);
CGroupOfFriendLines* GetNewGroupOfFriendLines(void);
CGroupOfFriendLines* GetGroupOfFriendLines(int i);
int GetCountGroupOfExtensibleLines(void);
CGroupOfExtensibleLines* GetNewGroupOfExtensibleLines(void);
CGroupOfExtensibleLines* GetGroupOfExtensibleLines(int i);
int GetCountComps(void);
CSL_POLY* GetNewComp(void);
CSL_POLY* GetComp(int i);
int GetCountDotComps(void);
CPRect32* GetNewDotComp(void);
CPRect32* GetDotComp(int i);
void DrowRectForDotComp(void);
*/
Bool IsItNewLine(CLINE_handle hContainer, DLine* pLineCP, int32_t GroupVerOffset, Bool32 IfDrawResult); //
Bool CheckLinesForExtensible(CLINE_handle hLine, GLM* hGroupEx); //
Bool CheckLinesImpositionForExtensible(CLINE_handle hLine, GLM* hGroupEx); //
Bool CheckLinesDegreeForExtensible(CLINE_handle hLine, GLM* hGroupEx); //
// Bool CheckGroupsForExtensible(void);
RSHELLLINES_FUNC(void) FindFriendLines(CLINE_handle hContainer, GLM* friendlinesmass); //
RSHELLLINES_FUNC(void) DrawFriendLines(CLINE_handle hContainer, GLM* friendlinesmass); //
RSHELLLINES_FUNC(void) FindGroupOfExtensibleLines(CLINE_handle hContainer, GLM* friendlinesmass, Bool32 IfDrawResult); //
void DrawGroupOfExtensibleLines(CLINE_handle hContainer, GLM* hGroup, int CountLines); //
RSHELLLINES_FUNC(void) FindLosedVerticalLines(CLINE_handle hContainer, GLM* friendlinesmass, CLINE_handle hFictContainer, int CountLines, Bool32 IfDrawResult); //
RSHELLLINES_FUNC(void) DrawLosedVerticalLines(GLM* friendlinesmass, int CountLines); //
// void GetBigComps(Handle hCComp);
RSHELLLINES_FUNC(void) DrawBigComps(CLINE_handle hContainer); //
RSHELLLINES_FUNC(void) FindDotLines(Handle hCCOM,Handle hCPAGE, CLINE_handle hContainer); //
Bool GetDotComps(Handle hCCOM,Handle hCPAGE, HANDLE &hbuf,char* &pDotBuffer, int32_t *CountDotComps); //
void FindChains(Handle hCCOM, char* &pDotBuffer, int32_t CountDotComps, CLINE_handle hContainer); //
void CheckChains(Handle hCCOM, char* &pDotBuffer, int32_t BegIndex,int32_t CountDots, CLINE_handle hContainer); //
void AddNewDotLines(Handle hCCOM, char* &pDotBuffer, int32_t CountDots, CLINE_handle hContainer); //
void UnionBreakup(CLINE_handle hContainer); //
RSHELLLINES_FUNC(void) SetLinesAndCompsRelationship(CLINE_handle hContainer, CLINE_handle hFictContainer); //
RSHELLLINES_FUNC(void) DrowAllLines(CLINE_handle hContainer, Handle hDrowAllLines); //
/* int SetImage(Handle hCPage);
};
*/
RSHELLLINES_FUNC(Bool32) FindLineFrag(CLINE_handle processedline, Bool32 OnlyPosyAndStat, Bool32 Is2ndPath, CLINE_handle hContainer, Bool32 IfNeedFragment = TRUE, Bool32 IfStraightFrag = FALSE); //
RSHELLLINES_FUNC(Bool32) FindLineAttr(CLINE_handle line, DLine* pCLine, Bool32 AbleSeeOldAttr); //
RSHELLLINES_FUNC(Bool32) GetNextPartOfLine(CLINE_handle hContainer, CLINE_handle hLine/*, CPDLine oldlinedata*/); //
void AddLine2Group(GLM* hGroup, CLINE_handle hLine);
RSHELLLINES_FUNC(void) DeleteGroup(GLM* hGroup, int CountLines);
RSHELLLINES_FUNC(void) DrawFragsForAllLines(CLINE_handle hContainer, Handle hDebugDrawAllLineFragments);
RSHELLLINES_FUNC(int32_t) CountBlackRaster(CPDLine pLine, CPDLine pLineExt, Bool32 IsHor, int32_t delta, Handle hDrawRaster);
RSHELLLINES_FUNC(Bool32) SetExtLines(CLINE_handle hExtContainer, CLINE_handle hContainer, CLINE_handle* hLinesMass, int32_t CountLines);
RSHELLLINES_FUNC(Bool32) RSL_CorrectDoubleLines(CLINE_handle hLine1, CLINE_handle hLine2);
RSHELLLINES_FUNC(Bool32) RSL_SplitLine(CLINE_handle hLine, CLINE_handle hContainer);
//possible return values for RSL_VerifyShortLine
#define RSL_IS_LINE 0
#define RSL_BIG_ANGLE_DIFF 1
#define RSL_NO_COMP_FOUND 2
#define RSL_BAD_RASTER_FORM 3
#define RSL_BAD_LINE_PARAMS 4
#define MAX_CROSS_POINTS 4
RSHELLLINES_FUNC(int32_t) RSL_VerifyShortLine(CPDLine pLine, Handle hCCOM, PAGEINFO* page_info, uchar lang, uchar debug_flags, int32_t *cross_point = NULL);
RSHELLLINES_FUNC(Bool) SL_GetRaster(Rect32* rect, uchar** ppData, PAGEINFO* page_info/*, CIMAGEBITMAPINFOHEADER* image_info*/); //
//}
|