public void SetColorMapTable(IColorMapTableGetter colorTableGetter)
 {
     if (colorTableGetter == null)
     {
         return;
     }
     _colorMapTable = colorTableGetter.ColorTable;
     _stretcher     = colorTableGetter.Stretcher as Func <T, byte>;
 }
Beispiel #2
0
        public void ApplyColorMapTable(ColorMapTable <double> oColorTable)
        {
            if (SelectedBandNos == null || _bandCount == 0)
            {
                return;
            }
            IColorMapTableGetter getter = ColorMapTableGetterFactory.GetColorTableGetter(_dataProvider.DataType, oColorTable);

            if (getter == null)
            {
                return;
            }
            _tileBitmapProvider.DataProviderReader.SetColorMapTable(getter);
            if (SelectedBandNos.Length > 1)
            {
                SelectedBandNos = new int[] { 1 }
            }
            ;
            else
            {
                _tileBitmapProvider.Reset();
                _tileBitmapProvider.UpdateSelectedBandNos(_selectedBandNos);
            }
        }