public override IModuleDataModel Clone() { var newInstance = new ChromaKeyData { ExcludeZeroValues = ExcludeZeroValues, LowerLimit = LowerLimit, UpperLimit = UpperLimit }; return(newInstance); }
public override IModuleDataModel Clone() { var newInstance = new ChromaKeyData { KeyColor = KeyColor, KeySaturation = KeySaturation, KeyHue = KeyHue, LowerLimit = LowerLimit, UpperLimit = UpperLimit, HueTolerance = HueTolerance, SaturationTolerance = SaturationTolerance }; return(newInstance); }
public ChromaKeySetup(ChromaKeyData data) { InitializeComponent(); ForeColor = ThemeColorTable.ForeColor; BackColor = ThemeColorTable.BackgroundColor; ThemeUpdateControls.UpdateControls(this); _lowerLimit = (int)(data.LowerLimit * 100); _upperLimit = (int)(data.UpperLimit * 100); UpdateLimitControls(); colorPanel1.Color = data.KeyColor; HueTolerance = data.HueTolerance; trkHueTolerance.Value = Convert.ToInt32(data.HueTolerance); SaturationTolerance = data.SaturationTolerance; trkSaturationTolerance.Value = Convert.ToInt32(data.SaturationTolerance * 100); }