ShowEdgeDetectorDlg example for C++ Builder
void __fastcall TForm1::ShowEdgeDetectorDlg1Click(TObject *Sender)
{
L_INT nRet;
LEADDlgImgEffect1->DlgFlags = DLG_EDGEDETECTOR_SHOW_PREVIEW |
DLG_EDGEDETECTOR_SHOW_TOOL_ZOOMLEVEL;
LEADDlgImgEffect1->LEADImage = LEADImage1;
nRet= LEADDlgImgEffect1->ShowEdgeDetectorDlg ( this );
if ( nRet == SUCCESS_DLG_OK )
{
LEADImage1->EdgeDetector (LEADDlgImgEffect1->Threshold,
LEADDlgImgEffect1->EdgeDetectionFilterType );
}
}