|
||||||||||
| 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(BufferedImage maskImage,
BufferedImage destination)
Construct an ApplyMaskFIlter. |
|
| Method Summary | |
|---|---|
static void |
composeThroughMask(Raster src,
WritableRaster dst,
Raster sel)
Interpolates between two rasters according to the alpha level of a mask raster. |
BufferedImage |
filter(BufferedImage src,
BufferedImage dst)
|
BufferedImage |
getDestination()
Get the destination image. |
BufferedImage |
getMaskImage()
Get the mask image. |
void |
setDestination(BufferedImage destination)
Set the destination image. |
void |
setMaskImage(BufferedImage maskImage)
Set the mask image. |
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(BufferedImage maskImage,
BufferedImage destination)
maskImage - the mask imagedestination - the destination image| Method Detail |
|---|
public void setDestination(BufferedImage destination)
destination - the destination imagegetDestination()public BufferedImage getDestination()
setDestination(java.awt.image.BufferedImage)public void setMaskImage(BufferedImage maskImage)
maskImage - the mask imagegetMaskImage()public BufferedImage getMaskImage()
setMaskImage(java.awt.image.BufferedImage)
public static void composeThroughMask(Raster src,
WritableRaster dst,
Raster sel)
src - the source rasterdst - the destination rastersel - the mask raster
public BufferedImage filter(BufferedImage src,
BufferedImage dst)
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||