BufferedImageOp, Cloneablepublic class ApplyMaskFilter extends AbstractBufferedImageOp
| 构造器 | 说明 |
|---|---|
ApplyMaskFilter() |
Construct an ApplyMaskFIlter.
|
ApplyMaskFilter(BufferedImage maskImage,
BufferedImage destination) |
Construct an ApplyMaskFIlter.
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
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, setRGBpublic 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)
Copyright © 2019. All rights reserved.