类 DissolveFilter
- java.lang.Object
-
- org.meteoinfo.image.filter.AbstractBufferedImageOp
-
- org.meteoinfo.image.filter.PointFilter
-
- org.meteoinfo.image.filter.DissolveFilter
-
- 所有已实现的接口:
java.awt.image.BufferedImageOp,java.lang.Cloneable
public class DissolveFilter extends PointFilter
A filter which "dissolves" an image by thresholding the alpha channel with random numbers.
-
-
字段概要
-
从类继承的字段 org.meteoinfo.image.filter.PointFilter
canFilterIndexColorModel
-
-
构造器概要
构造器 构造器 说明 DissolveFilter()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 java.awt.image.BufferedImagefilter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)intfilterRGB(int x, int y, int rgb)floatgetDensity()Get the density of the image.floatgetSoftness()Get the softness of the dissolve.voidsetDensity(float density)Set the density of the image in the range 0..1.voidsetSoftness(float softness)Set the softness of the dissolve in the range 0..1.java.lang.StringtoString()-
从类继承的方法 org.meteoinfo.image.filter.PointFilter
setDimensions
-
从类继承的方法 org.meteoinfo.image.filter.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
-
-
-
-
方法详细资料
-
setDensity
public void setDensity(float density)
Set the density of the image in the range 0..1.- 参数:
density- the density min-value 0 max-value 1- 另请参阅:
getDensity()
-
getDensity
public float getDensity()
Get the density of the image.- 返回:
- the density
- 另请参阅:
setDensity(float)
-
setSoftness
public void setSoftness(float softness)
Set the softness of the dissolve in the range 0..1.- 参数:
softness- the softness min-value 0 max-value 1- 另请参阅:
getSoftness()
-
getSoftness
public float getSoftness()
Get the softness of the dissolve.- 返回:
- the softness
- 另请参阅:
setSoftness(float)
-
filter
public java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)- 指定者:
filter在接口中java.awt.image.BufferedImageOp- 覆盖:
filter在类中PointFilter
-
filterRGB
public int filterRGB(int x, int y, int rgb)- 指定者:
filterRGB在类中PointFilter
-
toString
public java.lang.String toString()
- 覆盖:
toString在类中java.lang.Object
-
-