Class RaysFilter

  • All Implemented Interfaces:
    java.awt.image.BufferedImageOp, java.lang.Cloneable

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

      • RaysFilter

        public RaysFilter()
    • Method Detail

      • setOpacity

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

        public float getOpacity()
        Get the opacity of the rays.
        Returns:
        the opacity.
        See Also:
        setOpacity(float)
      • setThreshold

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

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

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

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

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

        public boolean getRaysOnly()
        Get whether to render only the rays.
        Returns:
        true to render rays only.
        See Also:
        setRaysOnly(boolean)
      • setColormap

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

        public java.awt.image.BufferedImage filter​(java.awt.image.BufferedImage src,
                                                   java.awt.image.BufferedImage dst)
        Specified by:
        filter in interface java.awt.image.BufferedImageOp
        Overrides:
        filter in class MotionBlurOp