Esempio n. 1
0
 // @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));
 }
Esempio n. 2
0
 // @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);
 }
Esempio n. 3
0
  public FilmFilter(float angle) {
    gradient = new GradientFilter();
    gradient.Gradient = Gradient.Fade();
    gradient.OriginAngleDegree = angle;

    saturationFx = new SaturationModifyFilter();
    saturationFx.SaturationFactor = -0.6f;
  }
Esempio n. 4
0
  public SceneFilter(float angle, Gradient gradient) {
    gradientFx = new GradientFilter();
    gradientFx.Gradient = gradient;
    gradientFx.OriginAngleDegree = angle;

    saturationFx = new SaturationModifyFilter();
    saturationFx.SaturationFactor = -0.6f;
  }