ShowMaxFilterDlg example for Delphi
procedure TForm1.ShowMaxFilterDlg1Click(Sender: TObject);
var
nRet: L_INT;
begin
LEADDlgImgEffect1.Dimension:= 10;
LEADDlgImgEffect1.DlgFlags:= DLG_MAXFILTER_SHOW_PREVIEW Or
DLG_MAXFILTER_SHOW_TOOL_ZOOMLEVEL;
LEADDlgImgEffect1.LEADImage:= LEADImage1;
nRet:= LEADDlgImgEffect1.ShowMaxFilterDlg ( Self );
if ( nRet = SUCCESS_DLG_OK ) then
begin
LEADImage1.MaxFilter ( LEADDlgImgEffect1.Dimension );
end;
end;