Class GlintFilter

All Implemented Interfaces:
BufferedImageOp, Cloneable

public class GlintFilter extends AbstractBufferedImageOp
A filter which renders "glints" on bright parts of the image.
  • Constructor Details

    • GlintFilter

      public GlintFilter()
  • Method Details

    • getCoverage

      public float getCoverage()
    • setCoverage

      public void setCoverage(float coverage)
    • setThreshold

      public void setThreshold(float threshold)
      Set the threshold value.
      Parameters:
      threshold - the threshold value
      See Also:
    • getThreshold

      public float getThreshold()
      Get the threshold value.
      Returns:
      the threshold value
      See Also:
    • setAmount

      public void setAmount(float amount)
      Set the amount of glint.
      Parameters:
      amount - the amount
      See Also:
    • getAmount

      public float getAmount()
      Get the amount of glint.
      Returns:
      the amount
      See Also:
    • setLength

      public void setLength(int length)
      Set the length of the stars.
      Parameters:
      length - the length
      See Also:
    • getLength

      public int getLength()
      Get the length of the stars.
      Returns:
      the length
      See Also:
    • setBlur

      public void setBlur(float blur)
      Set the blur that is applied before thresholding.
      Parameters:
      blur - the blur radius
      See Also:
    • getBlur

      public float getBlur()
      Set the blur that is applied before thresholding.
      Returns:
      the blur radius
      See Also:
    • setGlintOnly

      public void setGlintOnly(boolean glintOnly)
      Set whether to render the stars and the image or only the stars.
      Parameters:
      glintOnly - true to render only stars
      See Also:
    • getGlintOnly

      public boolean getGlintOnly()
      Get whether to render the stars and the image or only the stars.
      Returns:
      true to render only stars
      See Also:
    • setColormap

      public void setColormap(Colormap colormap)
      Set the colormap to be used for the filter.
      Parameters:
      colormap - the colormap
      See Also:
    • getColormap

      public Colormap getColormap()
      Get the colormap to be used for the filter.
      Returns:
      the colormap
      See Also:
    • filter

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

      public String toString()
      Overrides:
      toString in class Object