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