Class DiffuseFilter

All Implemented Interfaces:
BufferedImageOp, Cloneable

public class DiffuseFilter extends TransformFilter
This filter diffuses an image by moving its pixels in random directions.
  • Constructor Details

    • DiffuseFilter

      public DiffuseFilter()
  • Method Details

    • setScale

      public void setScale(float scale)
      Specifies the scale of the texture.
      Parameters:
      scale - the scale of the texture.
      See Also:
    • getScale

      public float getScale()
      Returns the scale of the texture.
      Returns:
      the scale of the texture.
      See Also:
    • transformInverse

      protected void transformInverse(int x, int y, float[] out)
      Description copied from class: TransformFilter
      Inverse transform a point. This method needs to be overriden by all subclasses.
      Specified by:
      transformInverse in class TransformFilter
      Parameters:
      x - the X position of the pixel in the output image
      y - the Y position of the pixel in the output image
      out - the position of the pixel in the input image
    • filter

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

      public String toString()
      Overrides:
      toString in class Object