Example #1
0
 public ColorBalance()
     : base(FilterType, FilterMaxInputs)
 {
     Shadow    = new FFmpegScaleRgb();
     Midtone   = new FFmpegScaleRgb();
     Highlight = new FFmpegScaleRgb();
 }
Example #2
0
        public ColorBalance(FFmpegScaleRgb shadows, FFmpegScaleRgb midtones, FFmpegScaleRgb highlights)
            : base(FilterType, FilterMaxInputs)
        {
            if (shadows == null)
            {
                throw new ArgumentNullException("shadows");
            }
            if (midtones == null)
            {
                throw new ArgumentNullException("midtones");
            }
            if (highlights == null)
            {
                throw new ArgumentNullException("highlights");
            }

            Shadow    = shadows;
            Midtone   = midtones;
            Highlight = highlights;
        }