Segment example for Visual Basic

Dim RasterProc As New LEADRasterProcess
RasterProc.Segment LEADRasterView1.Raster, 20, SGM_RGB