Пример #1
0
 /// <summary>
 /// Default constructor.
 /// </summary>
 public Clipper() : base()
 {
     _sampler2         = new EffectSampler(this);
     _sampler2.Name    = "Mask";
     _sampler2.Comment = "The opacity mask brush";
     Samplers.Add(_sampler2);
 }
Пример #2
0
        /// <summary>
        /// Default constructor.
        /// </summary>
        public Subtractor() : base()
        {
            _gain2    = new EffectProperty(this);
            _sampler2 = new EffectSampler(this);

            _sampler2.Name    = "Input2";
            _sampler2.Comment = "A brush to substract from the original element.";
            Samplers.Add(_sampler2);

            _gain2.Name         = "Gain2";
            _gain2.WrapperType  = typeof(double);
            _gain2.DefaultValue = "1.0";
            Properties.Add(_gain2);
        }
Пример #3
0
        /// <summary>
        /// Default constructor.
        /// </summary>
        public Mixer() : base()
        {
            _gain1    = new EffectProperty(this);
            _gain2    = new EffectProperty(this);
            _sampler2 = new EffectSampler(this);

            _sampler2.Name    = "Input2";
            _sampler2.Comment = "A brush to mix with the original element.";
            Samplers.Add(_sampler2);

            _gain1.Name         = "Gain1";
            _gain1.WrapperType  = typeof(double);
            _gain1.DefaultValue = "0.5";
            Properties.Add(_gain1);

            _gain2.Name         = "Gain2";
            _gain2.WrapperType  = typeof(double);
            _gain2.DefaultValue = "0.5";
            Properties.Add(_gain2);
        }