コード例 #1
0
        public SoftenPortraitEffect()
        {
            EffectData = new SoftenPortraitData();

            blurEffect    = new GaussianBlurEffect();
            bacAdjustment = new BrightnessContrastEffect();
            desaturateOp  = new UnaryPixelOps.Desaturate();
            overlayOp     = new UserBlendOps.OverlayBlendOp();
        }
コード例 #2
0
        public SoftenPortraitEffect()
            : base(StaticName, StaticIcon, SubmenuNames.Photo, EffectFlags.Configurable)
        {
            this.blurEffect = new GaussianBlurEffect();
            this.blurProps  = this.blurEffect.CreatePropertyCollection();

            this.desaturateOp = new UnaryPixelOps.Desaturate();

            this.bacAdjustment = new BrightnessAndContrastAdjustment();
            this.bacProps      = this.bacAdjustment.CreatePropertyCollection();

            this.overlayOp = new UserBlendOps.OverlayBlendOp();
        }