com.jhlabs.image
Class KeyFilter
java.lang.Object
com.jhlabs.image.AbstractBufferedImageOp
com.jhlabs.image.KeyFilter
- All Implemented Interfaces:
- java.awt.image.BufferedImageOp, java.lang.Cloneable
public class KeyFilter
- extends AbstractBufferedImageOp
A filter which can be used to produce wipes by transferring the luma of a Destination image into the alpha channel of the source.
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
KeyFilter
public KeyFilter()
setHTolerance
public void setHTolerance(float hTolerance)
- Set the tolerance of the image in the range 0..1.
*arg tolerance The tolerance
getHTolerance
public float getHTolerance()
setSTolerance
public void setSTolerance(float sTolerance)
getSTolerance
public float getSTolerance()
setBTolerance
public void setBTolerance(float bTolerance)
getBTolerance
public float getBTolerance()
setDestination
public void setDestination(java.awt.image.BufferedImage destination)
getDestination
public java.awt.image.BufferedImage getDestination()
setCleanImage
public void setCleanImage(java.awt.image.BufferedImage cleanImage)
getCleanImage
public java.awt.image.BufferedImage getCleanImage()
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