GetMinMaxVal example for Visual Basic

The following example retrieves the values for MinVal and MaxVal using GetMinMaxVal and writes the results.

    'must call GetMinMaxVal first
    LEADRasterView1.Raster.GetMinMaxVal
    Text3.Text = CStr(LEADRasterView1.Raster.MinVal)
    Text4.Text = CStr(LEADRasterView1.Raster.MaxVal)