GetUserLookupTable example for Visual Basic

   Dim PointCount As Long
   LEAD1.UserLUTCurveSize = 3
   LEAD1.UserLUTCurveX(0) = 0
   LEAD1.UserLUTCurveY(0) = 0
   LEAD1.UserLUTCurveX(1) = 128
   LEAD1.UserLUTCurveY(1) = 150
   LEAD1.UserLUTCurveX(2) = 255
   LEAD1.UserLUTCurveY(2) = 255
   LEAD1.GetUserLookupTable PointCount
   LEAD1.RemapIntensity CHANNEL_MASTER
   MsgBox PointCount & " Points were modified"