类 StampFilter
- java.lang.Object
-
- org.meteoinfo.image.filter.AbstractBufferedImageOp
-
- org.meteoinfo.image.filter.PointFilter
-
- org.meteoinfo.image.filter.StampFilter
-
- 所有已实现的接口:
BufferedImageOp,Cloneable
public class StampFilter extends PointFilter
A filter which produces a rubber-stamp type of effect by performing a thresholded blur.
-
-
字段概要
-
从类继承的字段 org.meteoinfo.image.filter.PointFilter
canFilterIndexColorModel
-
-
构造器概要
构造器 构造器 说明 StampFilter()Construct a StampFilter.StampFilter(float threshold)Construct a StampFilter.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 BufferedImagefilter(BufferedImage src, BufferedImage dst)intfilterRGB(int x, int y, int rgb)intgetBlack()Set the color to be used for pixels below the lower threshold.floatgetRadius()Get the radius of the effect.floatgetSoftness()Get the softness of the effect.floatgetThreshold()Get the threshold value.intgetWhite()Get the color to be used for pixels above the upper threshold.voidsetBlack(int black)Set the color to be used for pixels below the lower threshold.voidsetRadius(float radius)Set the radius of the effect.voidsetSoftness(float softness)Set the softness of the effect in the range 0..1.voidsetThreshold(float threshold)Set the threshold value.voidsetWhite(int white)Set the color to be used for pixels above the upper threshold.StringtoString()-
从类继承的方法 org.meteoinfo.image.filter.PointFilter
setDimensions
-
从类继承的方法 org.meteoinfo.image.filter.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
-
-
-
-
方法详细资料
-
setRadius
public void setRadius(float radius)
Set the radius of the effect.- 参数:
radius- the radius min-value 0- 另请参阅:
getRadius()
-
getRadius
public float getRadius()
Get the radius of the effect.- 返回:
- the radius
- 另请参阅:
setRadius(float)
-
setThreshold
public void setThreshold(float threshold)
Set the threshold value.- 参数:
threshold- the threshold value- 另请参阅:
getThreshold()
-
getThreshold
public float getThreshold()
Get the threshold value.- 返回:
- the threshold value
- 另请参阅:
setThreshold(float)
-
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)
-
setWhite
public void setWhite(int white)
Set the color to be used for pixels above the upper threshold.- 参数:
white- the color- 另请参阅:
getWhite()
-
getWhite
public int getWhite()
Get the color to be used for pixels above the upper threshold.- 返回:
- the color
- 另请参阅:
setWhite(int)
-
setBlack
public void setBlack(int black)
Set the color to be used for pixels below the lower threshold.- 参数:
black- the color- 另请参阅:
getBlack()
-
getBlack
public int getBlack()
Set the color to be used for pixels below the lower threshold.- 返回:
- the color
- 另请参阅:
setBlack(int)
-
filter
public BufferedImage filter(BufferedImage src, BufferedImage dst)
- 指定者:
filter在接口中BufferedImageOp- 覆盖:
filter在类中PointFilter
-
filterRGB
public int filterRGB(int x, int y, int rgb)- 指定者:
filterRGB在类中PointFilter
-
-