ShowRippleDlg example for Delphi

procedure TForm1.ShowRippleDlg1Click(Sender: TObject); 
var
   nRet: L_INT; 
begin
   LEADDlgImgEffect1.Amplitude:= 100; 
   LEADDlgImgEffect1.Frequency:= 50; 
   LEADDlgImgEffect1.DlgFlags:= DLG_RIPPLE_SHOW_PREVIEW Or
                                 DLG_RIPPLE_SHOW_TOOL_ZOOMLEVEL; 

   LEADDlgImgEffect1.LEADImage:= LEADImage1; 

   nRet:= LEADDlgImgEffect1.ShowRippleDlg ( Self ); 
   if ( nRet = SUCCESS_DLG_OK ) then
   begin
      LEADImage1.Ripple (LEADDlgImgEffect1.Amplitude
                          LEADDlgImgEffect1.Frequency
                          LEADDlgImgEffect1.Phase
                          LEADDlgImgEffect1.Attenuation
                          LEADDlgImgEffect1.CenterPoint
                          LEADDlgImgEffect1.FillColor
                          LEADDlgImgEffect1.RippleFlags ); 
   end; 
end;