ShowIntensityDetectDlg example for C++ Builder
void __fastcall TForm1::ShowIntensityDetectDlg1Click(TObject *Sender)
{
L_INT nRet;
LEADDlgColor1->DlgFlags = DLG_INTENSITYDETECT_SHOW_PREVIEW |
DLG_INTENSITYDETECT_SHOW_TOOL_ZOOMLEVEL;
LEADDlgColor1->LEADImage = LEADImage1;
LEADDlgColor1->LEADDlgService = LEADDlgService1;
LEADDlgColor1->ShowIntensityDetectDlg ( this );
if ( nRet == SUCCESS_DLG_OK )
{
LEADImage1->IntensityDetect ( LEADDlgColor1->IntensityLow,
LEADDlgColor1->IntensityHigh,
LEADDlgColor1->IntensityInColor,
LEADDlgColor1->IntensityOutColor,
LEADDlgColor1->Channel );
}
}