public override bool Apply(bool disposeController)
        {
            if (!_baseController.Apply(disposeController))
            {
                return(false);
            }

            _doc = (VisibleLightSpectrum)_baseController.ModelObject;

            _doc = _doc
                   .WithGamma(_view.Gamma)
                   .WithBrightness(_view.Brightness);

            return(ApplyEnd(true, disposeController));
        }
Пример #2
0
        public override bool Apply(bool disposeController)
        {
            if (!_baseController.Apply(disposeController))
            {
                return(false);
            }

            _doc = (ColorProviderAHSBGradient)_baseController.ModelObject;

            _doc = _doc
                   .WithHue0(_view.Hue0)
                   .WithHue1(_view.Hue1)
                   .WithSaturation0(_view.Saturation0)
                   .WithSaturation1(_view.Saturation1)
                   .WithBrightness0(_view.Brightness0)
                   .WithBrightness1(_view.Brightness1)
                   .WithOpaqueness0(_view.Opaqueness0)
                   .WithOpaqueness1(_view.Opaqueness1);

            return(ApplyEnd(true, disposeController));
        }
        public override bool Apply(bool disposeController)
        {
            if (!_baseController.Apply(disposeController))
            {
                return(false);
            }

            _doc = (ColorProviderARGBGradient)_baseController.ModelObject;

            _doc = _doc
                   .WithRed0(_view.Red0)
                   .WithRed1(_view.Red1)
                   .WithGreen0(_view.Green0)
                   .WithGreen1(_view.Green1)
                   .WithBlue0(_view.Blue0)
                   .WithBlue1(_view.Blue1)
                   .WithOpaqueness0(_view.Opaqueness0)
                   .WithOpaqueness1(_view.Opaqueness1);

            return(ApplyEnd(true, disposeController));
        }