예제 #1
0
  public FilmFilter(float angle) {
    gradient = new GradientFilter();
    gradient.Gradient = Gradient.Fade();
    gradient.OriginAngleDegree = angle;

    saturationFx = new SaturationModifyFilter();
    saturationFx.SaturationFactor = -0.6f;
  }
예제 #2
0
  public SceneFilter(float angle, Gradient gradient) {
    gradientFx = new GradientFilter();
    gradientFx.Gradient = gradient;
    gradientFx.OriginAngleDegree = angle;

    saturationFx = new SaturationModifyFilter();
    saturationFx.SaturationFactor = -0.6f;
  }
예제 #3
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));
 }
예제 #4
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);
 }