Class RaysFilter

All Implemented Interfaces:
MotionBlur, BufferedImageOp, Cloneable

public class RaysFilter extends MotionBlurOp
A filter which produces the effect of light rays shining out of an image.
  • Constructor Details

    • RaysFilter

      public RaysFilter()
  • Method Details

    • setOpacity

      public void setOpacity(float opacity)
      Set the opacity of the rays.
      Parameters:
      opacity - the opacity.
      See Also:
    • getOpacity

      public float getOpacity()
      Get the opacity of the rays.
      Returns:
      the opacity.
      See Also:
    • 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:
    • setStrength

      public void setStrength(float strength)
      Set the strength of the rays.
      Parameters:
      strength - the strength.
      See Also:
    • getStrength

      public float getStrength()
      Get the strength of the rays.
      Returns:
      the strength.
      See Also:
    • setRaysOnly

      public void setRaysOnly(boolean raysOnly)
      Set whether to render only the rays.
      Parameters:
      raysOnly - true to render rays only.
      See Also:
    • getRaysOnly

      public boolean getRaysOnly()
      Get whether to render only the rays.
      Returns:
      true to render rays only.
      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)
      Specified by:
      filter in interface BufferedImageOp
      Overrides:
      filter in class MotionBlurOp
    • toString

      public String toString()
      Overrides:
      toString in class MotionBlurOp