|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jhlabs.image.AbstractBufferedImageOp
com.jhlabs.image.ApplyMaskFilter
public class ApplyMaskFilter
A filter which uses the alpha channel of a "mask" image to interpolate between a source and destination image.
Constructor Summary | |
---|---|
ApplyMaskFilter()
Construct an ApplyMaskFIlter. |
|
ApplyMaskFilter(java.awt.image.BufferedImage maskImage,
java.awt.image.BufferedImage destination)
Construct an ApplyMaskFIlter. |
Method Summary | |
---|---|
static void |
composeThroughMask(java.awt.image.Raster src,
java.awt.image.WritableRaster dst,
java.awt.image.Raster sel)
Interpolates between two rasters according to the alpha level of a mask raster. |
java.awt.image.BufferedImage |
filter(java.awt.image.BufferedImage src,
java.awt.image.BufferedImage dst)
|
java.awt.image.BufferedImage |
getDestination()
Get the destination image. |
java.awt.image.BufferedImage |
getMaskImage()
Get the mask image. |
void |
setDestination(java.awt.image.BufferedImage destination)
Set the destination image. |
void |
setMaskImage(java.awt.image.BufferedImage maskImage)
Set the mask image. |
java.lang.String |
toString()
|
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp |
---|
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ApplyMaskFilter()
public ApplyMaskFilter(java.awt.image.BufferedImage maskImage, java.awt.image.BufferedImage destination)
maskImage
- the mask imagedestination
- the destination imageMethod Detail |
---|
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 setMaskImage(java.awt.image.BufferedImage maskImage)
maskImage
- the mask imagegetMaskImage()
public java.awt.image.BufferedImage getMaskImage()
setMaskImage(java.awt.image.BufferedImage)
public static void composeThroughMask(java.awt.image.Raster src, java.awt.image.WritableRaster dst, java.awt.image.Raster sel)
src
- the source rasterdst
- the destination rastersel
- the mask rasterpublic 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |