IntensityDetect Example for Visual Basic

Dim RasterProc As New LEADRasterProcess
RasterProc.IntensityDetect LEADRasterView1.Raster, _
                                             128, _
                                             255, _
                                             RGB(0, 0, 0), _
                                             RGB(255, 255, 255), _
                                             CHANNEL_MASTER