ShowWaveDlg example for Delphi

procedure TForm1.ShowWaveDlg1Click(Sender: TObject); 
var
   nRet: L_INT; 
begin
   LEADDlgImgEffect1.DlgFlags:= DLG_WAVE_SHOW_PREVIEW Or
                                 DLG_WAVE_SHOW_TOOL_ZOOMLEVEL; 

   LEADDlgImgEffect1.LEADImage:= LEADImage1; 
   nRet:= LEADDlgImgEffect1.ShowWaveDlg ( Self ); 
   if ( nRet = SUCCESS_DLG_OK ) then
   begin
      LEADImage1.Wave (LEADDlgImgEffect1.Amplitude
                        LEADDlgImgEffect1.WaveLength
                        LEADDlgImgEffect1.Angle
                        LEADDlgImgEffect1.HorzScale
                        LEADDlgImgEffect1.VertScale
                        LEADDlgImgEffect1.FillColor
                        LEADDlgImgEffect1.WaveFlags ); 
   end; 
end;