LineRemove example for C++ Builder
void __fastcall TForm1::Button6Click(TObject *Sender)
{
int nRet;
//Line Remove
//This examples removes vertical lines that are at least 200 pixels in length
//and no more than 5 pixels in width
//The lines can have gaps up to two pixels in length
//The LineRemove Event is used to display information about each line removed
LEADImage1->DocCleanSuccess = SUCCESS_REMOVE;
nRet = LEADImage1->LineRemove(LINE_USE_GAP, 200, 5, 7, 1, 2, 0, LINEREMOVE_HORIZONTAL);
}
void __fastcall TForm1::LEADImage1LineRemove (TObject *Sender,
int nStartRow, int nStartCol, int nLength, L_HRGN hRgnLine)
{
AnsiString strTemp;
strTemp = "Line at " + IntToStr(nStartRow) + "," + IntToStr(nStartCol) +
" Length=" + IntToStr(nLength);
OutputDebugString(strTemp.c_str());
}