public ComplexCorrection(ComplexCorrection inputCorrection)
 {
         Red = inputCorrection.Red;
         Green = inputCorrection.Green;
         Blue = inputCorrection.Blue;
         Master = inputCorrection.Master;
         Contrast = inputCorrection.Contrast;
         Saturation = inputCorrection.Saturation;
         Rotation = inputCorrection.Rotation;
 }
 public ComplexCorrection(int range = 100)
 {
     Red = new ComplexColorValue(range);
     Green = new ComplexColorValue(range);
     Blue = new ComplexColorValue(range);
     Master = new ComplexColorValue(range);
     Contrast = new ContrastValue();
     Saturation = new SaturationValue();
     Rotation = new RotationValue();
 }
 public ComplexCorrection(SerializationInfo info, StreamingContext context)
 {
     if (info == null)
         throw new System.ArgumentNullException("info");
     Red = (ComplexColorValue)info.GetValue("Red", typeof(ComplexColorValue));
     Green = (ComplexColorValue)info.GetValue("Green", typeof(ComplexColorValue));
     Blue = (ComplexColorValue)info.GetValue("Blue", typeof(ComplexColorValue));
     Master = (ComplexColorValue)info.GetValue("Master", typeof(ComplexColorValue));
     Contrast = (ContrastValue)info.GetValue("Contrast", typeof(ContrastValue));
     Saturation = (SaturationValue)info.GetValue("Saturation", typeof(SaturationValue));
     Rotation = (RotationValue)info.GetValue("Rotation", typeof(RotationValue));
 }
示例#4
0
 public Correction(ICorrection ic)
 {
     _blue = new ColorValue(ic.Blue);
     _green = new ColorValue(ic.Green);
     _red = new ColorValue(ic.Red);
     _black = new LevelsValue(ic.Black);
     _shadow = new LevelsValue(ic.Shadow);
     _highlight = new LevelsValue(ic.Highlight);
     _white = new LevelsValue(ic.White);
     _midpoint = new MidtoneValue(ic.Midpoint);
     _contrast = new ContrastValue(ic.Contrast);
     _saturation = new SaturationValue(ic.Saturation);
     _rotate = new RotationValue(ic.Rotate);
 }
示例#5
0
 public Correction()
 {
     _blue = new ColorValue();
     _green = new ColorValue();
     _red = new ColorValue();
     _black = new LevelsValue();
     _shadow = new LevelsValue();
     _highlight = new LevelsValue(1);
     _white = new LevelsValue(1);
     _midpoint = new MidtoneValue();
     _contrast = new ContrastValue();
     _saturation = new SaturationValue();
     _rotate = new RotationValue();
 }