public FilmFilter(float angle) { gradient = new GradientFilter(); gradient.Gradient = Gradient.Fade(); gradient.OriginAngleDegree = angle; saturationFx = new SaturationModifyFilter(); saturationFx.SaturationFactor = -0.6f; }
public SceneFilter(float angle, Gradient gradient) { gradientFx = new GradientFilter(); gradientFx.Gradient = gradient; gradientFx.OriginAngleDegree = angle; saturationFx = new SaturationModifyFilter(); saturationFx.SaturationFactor = -0.6f; }
// @Override public Image process(Image imageIn) { Image clone = imageIn.clone(); imageIn = gradient.process(imageIn); ImageBlender blender = new ImageBlender(); blender.Mode = BlendMode.Multiply; return saturationFx.process(blender.Blend(clone, imageIn)); }
// @Override public Image process(Image imageIn) { Image clone = imageIn.clone(); imageIn = gradientFx.process(imageIn); ImageBlender blender = new ImageBlender(); blender.Mode = BlendMode.Subractive; return saturationFx.process(blender.Blend(clone, imageIn)); // return imageIn;// saturationFx.process(imageIn); }