Example #1
0
        private object TryGetDefaultStretcher()
        {
            double minValue, maxValue;

            if (DataType == enumDataType.Byte)
            {
                minValue = 0;
                maxValue = 255;
            }
            else
            {
                this.ComputeMinMax(out minValue, out maxValue, true, null);
            }
            return(RgbStretcherFactory.CreateStretcher(DataType, minValue, maxValue));
        }