ShowZoomWaveDlg Example for Visual Basic

Dim RasterImgEfxDlg As New LEADRasterDlgImgEfx
Dim RasterProc   As New LEADRasterProcess
Dim nRet As Integer
Private Sub ZoomWave_Click()
    RasterImgEfxDlg.UIFlags = ZOOMWAVE_SHOW_PREVIEW Or _
                                ZOOMWAVE_SHOW_TOOL_ZOOMLEVEL

   RasterImgEfxDlg.Bitmap = LEADRasterView1.Raster.Bitmap

   nRet = RasterImgEfxDlg.ShowZoomWaveDlg(hWnd) 
   If (nRet = 0 And RasterImgEfxDlg.DialogStatus = DLG_OK) Then
      RasterProc.ZoomWave LEADRasterView1.Raster, RasterImgEfxDlg.Amplitude, _
                            RasterImgEfxDlg.Frequency, _
                            RasterImgEfxDlg.Phase, _
                            RasterImgEfxDlg.ZoomFactor, _
                            RasterImgEfxDlg.CenterX, _
                            RasterImgEfxDlg.CenterY, _
                            RasterImgEfxDlg.FillColor, _
                            RasterImgEfxDlg.ImageEffectFlags
   End If
End Sub