示例#1
0
        public ColorBalance(DecimalScaleRgb shadows, DecimalScaleRgb midtones, DecimalScaleRgb highlights)
        {
            if (shadows == null)
            {
                throw new ArgumentNullException("shadows");
            }
            if (midtones == null)
            {
                throw new ArgumentNullException("midtones");
            }
            if (highlights == null)
            {
                throw new ArgumentNullException("highlights");
            }

            _shadowsRgb    = shadows;
            _midtonesRgb   = midtones;
            _highlightsRgb = highlights;
        }
示例#2
0
 public ColorBalance()
 {
     _shadowsRgb    = new DecimalScaleRgb();
     _midtonesRgb   = new DecimalScaleRgb();
     _highlightsRgb = new DecimalScaleRgb();
 }