Beispiel #1
0
 public void Reset()
 {
     SetOrAdjustSelectedBandNos();
     _tileBitmapProvider.Reset();
     _tileBitmapProvider.DataProviderReader.ResetStretcher();
     _tileBitmapProvider.UpdateSelectedBandNos(_selectedBandNos);
 }
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);
            }
        }