Class DissolveFilter

All Implemented Interfaces:
BufferedImageOp, Cloneable

public class DissolveFilter extends PointFilter
A filter which "dissolves" an image by thresholding the alpha channel with random numbers.
  • Constructor Details

    • DissolveFilter

      public DissolveFilter()
  • Method Details

    • setDensity

      public void setDensity(float density)
      Set the density of the image in the range 0..1. *arg density The density
    • getDensity

      public float getDensity()
    • setSoftness

      public void setSoftness(float softness)
      Set the density of the dissolve in the range 0..1. *arg softness The softness
    • getSoftness

      public float getSoftness()
    • filter

      public BufferedImage filter(BufferedImage src, BufferedImage dst)
      Specified by:
      filter in interface BufferedImageOp
      Overrides:
      filter in class PointFilter
    • filterRGB

      public int filterRGB(int x, int y, int rgb)
      Specified by:
      filterRGB in class PointFilter
    • toString

      public String toString()
      Overrides:
      toString in class Object