类 ApplyMaskFilter
- java.lang.Object
-
- org.meteoinfo.image.filter.AbstractBufferedImageOp
-
- org.meteoinfo.image.filter.ApplyMaskFilter
-
- 所有已实现的接口:
BufferedImageOp,Cloneable
public class ApplyMaskFilter extends AbstractBufferedImageOp
A filter which uses the alpha channel of a "mask" image to interpolate between a source and destination image.
-
-
构造器概要
构造器 构造器 说明 ApplyMaskFilter()Construct an ApplyMaskFIlter.ApplyMaskFilter(BufferedImage maskImage, BufferedImage destination)Construct an ApplyMaskFIlter.
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 static voidcomposeThroughMask(Raster src, WritableRaster dst, Raster sel)Interpolates between two rasters according to the alpha level of a mask raster.BufferedImagefilter(BufferedImage src, BufferedImage dst)BufferedImagegetDestination()Get the destination image.BufferedImagegetMaskImage()Get the mask image.voidsetDestination(BufferedImage destination)Set the destination image.voidsetMaskImage(BufferedImage maskImage)Set the mask image.StringtoString()-
从类继承的方法 org.meteoinfo.image.filter.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
-
-
-
-
构造器详细资料
-
ApplyMaskFilter
public ApplyMaskFilter()
Construct an ApplyMaskFIlter.
-
ApplyMaskFilter
public ApplyMaskFilter(BufferedImage maskImage, BufferedImage destination)
Construct an ApplyMaskFIlter.- 参数:
maskImage- the mask imagedestination- the destination image
-
-
方法详细资料
-
setDestination
public void setDestination(BufferedImage destination)
Set the destination image.- 参数:
destination- the destination image- 另请参阅:
getDestination()
-
getDestination
public BufferedImage getDestination()
Get the destination image.- 返回:
- the destination image
- 另请参阅:
setDestination(java.awt.image.BufferedImage)
-
setMaskImage
public void setMaskImage(BufferedImage maskImage)
Set the mask image.- 参数:
maskImage- the mask image- 另请参阅:
getMaskImage()
-
getMaskImage
public BufferedImage getMaskImage()
Get the mask image.- 返回:
- the mask image
- 另请参阅:
setMaskImage(java.awt.image.BufferedImage)
-
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)
-
-