ShowAverageDlg Example for Visual Basic
Dim RasterImgEfxDlg As New LEADRasterDlgImgEfx
Dim RasterProc As New LEADRasterProcess
Dim nRet As Integer
Private Sub Average_Click()
RasterImgEfxDlg.UIFlags = AVERAGE_SHOW_PREVIEW + _
AVERAGE_SHOW_TOOL_ZOOMLEVEL
RasterImgEfxDlg.Bitmap = LEADRasterView1.Raster.Bitmap
nRet = RasterImgEfxDlg.ShowAverageDlg(hWnd)
If (nRet = 0 And RasterImgEfxDlg.DialogStatus = DLG_OK) Then
RasterProc.Average LEADRasterView1.Raster, RasterImgEfxDlg.Dimension
End If
End Sub