ImGearPageDisplay pageDisplay = igPageView.Display;
// Highlight low values with blue
ImGearPixel lowColor = new ImGearPixel(3, 8);
lowColor[0] = 0;
lowColor[1] = 0;
lowColor[2] = 255;
// Highlight high values with red
ImGearPixel highColor = new ImGearPixel(3, 8);
highColor[0] = 255;
highColor[1] = 0;
highColor[2] = 0;
ImGearRGBLUT LUT = new ImGearRGBLUT(8, 8);
ImGearContrastSettings contrastSettings = ImGearContrastSettings.CreateDefault();
ImGearDICOM.BuildColorLimitsLUT(0, lowColor, 255, highColor, LUT);
pageDisplay.UpdateLUT(LUT, contrastSettings);
Dim pageDisplay As ImGearPageDisplay = igPageView.Display
' Highlight low values with blue
Dim lowColor As ImGearPixel = New ImGearPixel(3, 8)
lowColor(0) = 0
lowColor(1) = 0
lowColor(2) = 255
' Highlight high values with red
Dim highColor As ImGearPixel = New ImGearPixel(3, 8)
highColor(0) = 255
highColor(1) = 0
highColor(2) = 0
Dim LUT As ImGearRGBLUT = New ImGearRGBLUT(8, 8)
Dim contrastSettings As ImGearContrastSettings = ImGearContrastSettings.CreateDefault()
ImGearDICOM.BuildColorLimitsLUT(0, lowColor, 255, highColor, LUT)
pageDisplay.UpdateLUT(LUT, contrastSettings)