com.jhlabs.image
Class GradientWipeFilter
java.lang.Object
com.jhlabs.image.AbstractBufferedImageOp
com.jhlabs.image.GradientWipeFilter
- All Implemented Interfaces:
- BufferedImageOp, 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.
GradientWipeFilter
public GradientWipeFilter()
setDensity
public void setDensity(float density)
- Set the density of the image in the range 0..1.
*arg density The density
getDensity
public float getDensity()
setSoftness
public void setSoftness(float softness)
- Set the softness of the dissolve in the range 0..1.
- Parameters:
softness - the softness- See Also:
getSoftness()
getSoftness
public float getSoftness()
- Get the softness of the dissolve.
- Returns:
- the softness
- See Also:
setSoftness(float)
setMask
public void setMask(BufferedImage mask)
getMask
public BufferedImage getMask()
setInvert
public void setInvert(boolean invert)
getInvert
public boolean getInvert()
filter
public BufferedImage filter(BufferedImage src,
BufferedImage dst)
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2012. All Rights Reserved.