Class HalftoneFilter

All Implemented Interfaces:
BufferedImageOp, Cloneable

public class HalftoneFilter extends AbstractBufferedImageOp
A filter which uses a another image as a ask to produce a halftoning effect.
  • Constructor Details

    • HalftoneFilter

      public HalftoneFilter()
  • Method Details

    • setSoftness

      public void setSoftness(float softness)
      Set the softness of the effect in the range 0..1.
      Parameters:
      softness - the softness
      See Also:
    • getSoftness

      public float getSoftness()
      Get the softness of the effect.
      Returns:
      the softness
      See Also:
    • setMask

      public void setMask(BufferedImage mask)
      Set the halftone mask.
      Parameters:
      mask - the mask
      See Also:
    • getMask

      public BufferedImage getMask()
      Get the halftone mask.
      Returns:
      the mask
      See Also:
    • setInvert

      public void setInvert(boolean invert)
    • getInvert

      public boolean getInvert()
    • setMonochrome

      public void setMonochrome(boolean monochrome)
      Set whether to do monochrome halftoning.
      Parameters:
      monochrome - true for monochrome halftoning
      See Also:
    • getMonochrome

      public boolean getMonochrome()
      Get whether to do monochrome halftoning.
      Returns:
      true for monochrome halftoning
      See Also:
    • filter

      public BufferedImage filter(BufferedImage src, BufferedImage dst)
    • toString

      public String toString()
      Overrides:
      toString in class Object