Package com.jhlabs.image
Class ChromaKeyFilter
- java.lang.Object
-
- com.jhlabs.image.AbstractBufferedImageOp
-
- com.jhlabs.image.ChromaKeyFilter
-
- All Implemented Interfaces:
java.awt.image.BufferedImageOp
,java.lang.Cloneable
public class ChromaKeyFilter 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 ChromaKeyFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.image.BufferedImage
filter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)
float
getBTolerance()
int
getColor()
float
getHTolerance()
float
getSTolerance()
void
setBTolerance(float bTolerance)
void
setColor(int color)
void
setHTolerance(float hTolerance)
Set the tolerance of the image in the range 0..1.void
setSTolerance(float sTolerance)
java.lang.String
toString()
-
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB, stringToColor
-
-
-
-
Method Detail
-
setHTolerance
public void setHTolerance(float hTolerance)
Set the tolerance of the image in the range 0..1.- Parameters:
hTolerance
- 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()
-
setColor
public void setColor(int color)
-
getColor
public int getColor()
-
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 classjava.lang.Object
-
-