public SepiaFilter() { gradientMapFx = new GradientMapFilter(Gradient.BlackSepia()); gradientMapFx.ContrastFactor = 0.2f; gradientMapFx.BrightnessFactor = 0.1f; saturationFx = new SaturationModifyFilter(); saturationFx.SaturationFactor = -0.6f; }
//@Override public Image process(Image imageIn) { GradientMapFilter gmf = new GradientMapFilter(Gradient.BlackSepia()); gmf.ContrastFactor = 0.15f; ImageBlender ib = new ImageBlender(); ib.Mixture = 0.7f; ib.Mode = BlendMode.Overlay; imageIn = ib.Blend(imageIn.clone(), gmf.process(imageIn)); VignetteFilter vigette = new VignetteFilter(); vigette.Size = 0.7f; return(vigette.process(imageIn)); }