예제 #1
0
        override public ActionEvent Parse(ActionParser parser)
        {
            base.Parse(parser);

            if (_adjustment == null)
            {
                Console.WriteLine("HueSaturationEvent: implement colorization only");
            }
            else if (_adjustment.Count > 1)
            {
                Console.WriteLine("HueSaturationEvent: implement for > 1 params");
            }
            else if (_adjustment[0] is ObjcParameter)
            {
                ObjcParameter objc = _adjustment[0] as ObjcParameter;

                _hue        = (int)objc.GetValueAsLong("H");
                _saturation = (int)objc.GetValueAsLong("Strt");
                _lightness  = (int)objc.GetValueAsLong("Lght");
            }
            return(this);
        }