Package 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.
-
-
Constructor Summary
Constructors Constructor Description KeyFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.image.BufferedImagefilter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)floatgetBTolerance()java.awt.image.BufferedImagegetCleanImage()java.awt.image.BufferedImagegetDestination()floatgetHTolerance()floatgetSTolerance()voidsetBTolerance(float bTolerance)voidsetCleanImage(java.awt.image.BufferedImage cleanImage)voidsetDestination(java.awt.image.BufferedImage destination)voidsetHTolerance(float hTolerance)Set the tolerance of the image in the range 0..1.voidsetSTolerance(float sTolerance)java.lang.StringtoString()-
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
-
-
-
-
Method Detail
-
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:
toStringin classjava.lang.Object
-
-