Class GradientWipeFilter

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

    public class GradientWipeFilter
    extends AbstractBufferedImageOp
    A filter which can be used to produce wipes by transferring the luma of a mask image into the alpha channel of the source.
    • Constructor Detail

      • GradientWipeFilter

        public GradientWipeFilter()
    • Method Detail

      • setDensity

        public void setDensity​(float density)
        Set the density of the image in the range 0..1.
        Parameters:
        density - The density
        See Also:
        getDensity()
      • getDensity

        public float getDensity()
        Get the density.
        Returns:
        the density.
        See Also:
        setDensity(float)
      • setSoftness

        public void setSoftness​(float softness)
        Set the softness of the dissolve in the range 0..1.
        Parameters:
        softness - the softness. min-value: 0, max-value: 1
        See Also:
        getSoftness()
      • getSoftness

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

        public void setMask​(java.awt.image.BufferedImage mask)
        Set the mask.
        Parameters:
        mask - The mask
        See Also:
        getMask()
      • getMask

        public java.awt.image.BufferedImage getMask()
        Get the mask.
        Returns:
        The mask
        See Also:
        setMask(BufferedImage)
      • setInvert

        public void setInvert​(boolean invert)
        Set the invert.
        Parameters:
        invert - True if inverted
        See Also:
        getInvert()
      • getInvert

        public boolean getInvert()
        Get the invert.
        Returns:
        The invert.
        See Also:
        setInvert(boolean)
      • filter

        public java.awt.image.BufferedImage filter​(java.awt.image.BufferedImage src,
                                                   java.awt.image.BufferedImage dst)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object