ShowLineRemoveDlg example for C++ Builder
void __fastcall TForm1::ShowLineRemoveDlg1Click(TObject *Sender)
{
L_INT nRet;
LEADDlgImgDoc1->GapLength = 3;
LEADDlgImgDoc1->MaxLineWidth = 9;
LEADDlgImgDoc1->MaxWallPercent = 10;
LEADDlgImgDoc1->MinLineLength = 400;
LEADDlgImgDoc1->Variance = 3;
LEADDlgImgDoc1->Wall = 15;
LEADDlgImgDoc1->ModificationColor = RGB ( 0, 255, 0 );
LEADDlgImgDoc1->ProcessFlags = LINE_USE_DPI | LINE_USE_VARIANCE;
LEADDlgImgDoc1->RemoveFlags = LINEREMOVE_VERTICAL;
LEADDlgImgDoc1->DlgFlags = DLG_LINEREMOVE_SHOW_PREVIEW |
DLG_LINEREMOVE_SHOW_TOOL_ZOOMLEVEL;
LEADDlgImgDoc1->LEADImage= LEADImage1;
LEADDlgImgDoc1->ShowLineRemoveDlg ( this );
if ( nRet == SUCCESS_DLG_OK )
{
LEADImage1->FreeRgn ( );
LEADImage1->SetRgnHandle ( LEADDlgImgDoc1->DocCleanRgn, 0, 0, L_RGN_SET );
LEADDlgImgDoc1->DocCleanRgn= 0; /*no longer need rgn*/
LEADImage1->RgnFrameType= ftAnimated;
}
}