public class ApplyMaskFilter extends AbstractBufferedImageOp
Modifier and Type | Field and Description |
---|---|
private BufferedImage |
destination |
private BufferedImage |
maskImage |
Constructor and Description |
---|
ApplyMaskFilter()
Construct an ApplyMaskFIlter.
|
ApplyMaskFilter(BufferedImage maskImage,
BufferedImage destination)
Construct an ApplyMaskFIlter.
|
Modifier and Type | Method and Description |
---|---|
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() |
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
private BufferedImage destination
private BufferedImage maskImage
public ApplyMaskFilter()
public ApplyMaskFilter(BufferedImage maskImage, BufferedImage destination)
maskImage
- the mask imagedestination
- the destination imagepublic 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 rasterpublic BufferedImage filter(BufferedImage src, BufferedImage dst)
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses