GetLinearVOILUT example for Visual Basic

Dim RasterProc As New LEADRasterProcess
Dim nRet As Integer
   RasterProc.EnableMethodErrors = False
   nRet = RasterProc.GetLinearVOILUT(LEADRasterView1.Raster, 0)
   If (nRet = 0) Then
      MsgBox "Width = " + Str(RasterProc.UserWindowWidth) + Chr$(13) + _            
"Center = " + Str(RasterProc.UserWindowCenter)
   End If