public class KeyFilter extends AbstractBufferedImageOp
| Constructor and Description |
|---|
KeyFilter() |
| Modifier and Type | Method and Description |
|---|---|
java.awt.image.BufferedImage |
filter(java.awt.image.BufferedImage src,
java.awt.image.BufferedImage dst) |
float |
getBTolerance()
Get the brightness tolerance.
|
java.awt.image.BufferedImage |
getCleanImage()
Get the clean image.
|
java.awt.image.BufferedImage |
getDestination()
Get the destination image.
|
float |
getHTolerance()
Get the hue tolerance.
|
float |
getSTolerance()
Get the saturation tolerance.
|
void |
setBTolerance(float bTolerance)
Set the brightness tolerance of the image in the range 0..1.
|
void |
setCleanImage(java.awt.image.BufferedImage cleanImage)
Get the clean image.
|
void |
setDestination(java.awt.image.BufferedImage destination)
Set the destination image.
|
void |
setHTolerance(float hTolerance)
Set the hue tolerance of the image in the range 0..1.
|
void |
setSTolerance(float sTolerance)
Set the saturation tolerance of the image in the range 0..1.
|
java.lang.String |
toString() |
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB, stringToColorpublic void setHTolerance(float hTolerance)
hTolerance - the tolerancegetHTolerance()public float getHTolerance()
setHTolerance(float)public void setSTolerance(float sTolerance)
sTolerance - the tolerancegetSTolerance()public float getSTolerance()
setSTolerance(float)public void setBTolerance(float bTolerance)
bTolerance - the tolerancegetBTolerance()public float getBTolerance()
setBTolerance(float)public void setDestination(java.awt.image.BufferedImage destination)
destination - the destination imagegetDestination()public java.awt.image.BufferedImage getDestination()
setDestination(java.awt.image.BufferedImage)public void setCleanImage(java.awt.image.BufferedImage cleanImage)
cleanImage - the clean imagegetCleanImage()public java.awt.image.BufferedImage getCleanImage()
setCleanImage(java.awt.image.BufferedImage)public java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src,
java.awt.image.BufferedImage dst)
public java.lang.String toString()
toString in class java.lang.Object