类 HalftoneFilter
- java.lang.Object
-
- org.meteoinfo.image.filter.AbstractBufferedImageOp
-
- org.meteoinfo.image.filter.HalftoneFilter
-
- 所有已实现的接口:
BufferedImageOp,Cloneable
public class HalftoneFilter extends AbstractBufferedImageOp
A filter which uses a another image as a ask to produce a halftoning effect.
-
-
构造器概要
构造器 构造器 说明 HalftoneFilter()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 BufferedImagefilter(BufferedImage src, BufferedImage dst)booleangetInvert()BufferedImagegetMask()Get the halftone mask.booleangetMonochrome()Get whether to do monochrome halftoning.floatgetSoftness()Get the softness of the effect.voidsetInvert(boolean invert)voidsetMask(BufferedImage mask)Set the halftone mask.voidsetMonochrome(boolean monochrome)Set whether to do monochrome halftoning.voidsetSoftness(float softness)Set the softness of the effect in the range 0..1.StringtoString()-
从类继承的方法 org.meteoinfo.image.filter.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
-
-
-
-
方法详细资料
-
setSoftness
public void setSoftness(float softness)
Set the softness of the effect in the range 0..1.- 参数:
softness- the softness min-value 0 max-value 1- 另请参阅:
getSoftness()
-
getSoftness
public float getSoftness()
Get the softness of the effect.- 返回:
- the softness
- 另请参阅:
setSoftness(float)
-
setMask
public void setMask(BufferedImage mask)
Set the halftone mask.- 参数:
mask- the mask- 另请参阅:
getMask()
-
getMask
public BufferedImage getMask()
Get the halftone mask.- 返回:
- the mask
- 另请参阅:
setMask(java.awt.image.BufferedImage)
-
setInvert
public void setInvert(boolean invert)
-
getInvert
public boolean getInvert()
-
setMonochrome
public void setMonochrome(boolean monochrome)
Set whether to do monochrome halftoning.- 参数:
monochrome- true for monochrome halftoning- 另请参阅:
getMonochrome()
-
getMonochrome
public boolean getMonochrome()
Get whether to do monochrome halftoning.- 返回:
- true for monochrome halftoning
- 另请参阅:
setMonochrome(boolean)
-
filter
public BufferedImage filter(BufferedImage src, BufferedImage dst)
-
-