com.jhlabs.image
Class ApplyMaskFilter
- BufferedImageOp, Cloneable
public class ApplyMaskFilter
A filter which uses the alpha channel of a "mask" image to interpolate between a source and destination image.
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()
|
ApplyMaskFilter
public ApplyMaskFilter()
Construct an ApplyMaskFIlter.
ApplyMaskFilter
public ApplyMaskFilter(BufferedImage maskImage,
BufferedImage destination)
Construct an ApplyMaskFIlter.
maskImage
- the mask imagedestination
- the destination image
composeThroughMask
public static void composeThroughMask(Raster src,
WritableRaster dst,
Raster sel)
Interpolates between two rasters according to the alpha level of a mask raster.
src
- the source rasterdst
- the destination rastersel
- the mask raster
filter
public BufferedImage filter(BufferedImage src,
BufferedImage dst)
getDestination
public BufferedImage getDestination()
Get the destination image.
getMaskImage
public BufferedImage getMaskImage()
Get the mask image.
setDestination
public void setDestination(BufferedImage destination)
Set the destination image.
destination
- the destination image
setMaskImage
public void setMaskImage(BufferedImage maskImage)
Set the mask image.
maskImage
- the mask image
toString
public String toString()