public override XmlElement ToXML(XmlDocument xmldoc)
 {
     if (_actualArgs == null)
     {
         _actualArgs = new ReplaceColorArg();
     }
     return(_actualArgs.ToXML(xmldoc));
 }
Exemplo n.º 2
0
 /// <summary>
 /// 参数编辑窗口自己的初始化
 /// </summary>
 private void Init()
 {
     _actualArg = _arg as ReplaceColorArg;
     if (_onColorPickIsFinished == null)
     {
         _onColorPickIsFinished = new OnColorPickIsFinishedHandler(OnColorPicked);
     }
     _actualArg.TargetColor = panelTargetColor.BackColor;
 }
 protected override void BeforeProcess()
 {
     _actualArgs   = _arg as ReplaceColorArg;
     _red          = _actualArgs.TargetColor.R;
     _green        = _actualArgs.TargetColor.G;
     _blue         = _actualArgs.TargetColor.B;
     _colorTorence = _actualArgs.ColorTorence;
     _hue          = (int)_actualArgs.Hue;
     _saturation   = (int)_actualArgs.Saturation;
     _lightness    = (int)_actualArgs.Lightness;
 }
Exemplo n.º 4
0
        public override RgbProcessorArg Clone()
        {
            ReplaceColorArg replaceArg = new ReplaceColorArg();

            return(replaceArg);
        }
 public override void CreateDefaultArguments()
 {
     _arg = new ReplaceColorArg();
 }