Class GlowFilter

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

    public class GlowFilter
    extends GaussianFilter
    A filter which adds Gaussian blur to an image, producing a glowing effect.
    Author:
    Jerry Huxtable
    • Constructor Detail

      • GlowFilter

        public GlowFilter()
    • Method Detail

      • setAmount

        public void setAmount​(float amount)
        Set the amount of glow.
        Parameters:
        amount - the amount. min-value: 0, max-value: 1.
        See Also:
        getAmount()
      • getAmount

        public float getAmount()
        Get the amount of glow.
        Returns:
        the amount
        See Also:
        setAmount(float)
      • 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 GaussianFilter