Package com.jhlabs.image
Class KeyFilter
java.lang.Object
com.jhlabs.image.AbstractBufferedImageOp
com.jhlabs.image.KeyFilter
- All Implemented Interfaces:
BufferedImageOp
,Cloneable
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 -
Method Summary
Modifier and TypeMethodDescriptionfilter
(BufferedImage src, BufferedImage dst) float
float
float
void
setBTolerance
(float bTolerance) void
setCleanImage
(BufferedImage cleanImage) void
setDestination
(BufferedImage destination) void
setHTolerance
(float hTolerance) Set the tolerance of the image in the range 0..1.void
setSTolerance
(float sTolerance) toString()
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
-
Constructor Details
-
KeyFilter
public KeyFilter()
-
-
Method Details
-
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
-
getDestination
-
setCleanImage
-
getCleanImage
-
filter
-
toString
-