类 OilFilter
- java.lang.Object
-
- org.meteoinfo.image.filter.AbstractBufferedImageOp
-
- org.meteoinfo.image.filter.WholeImageFilter
-
- org.meteoinfo.image.filter.OilFilter
-
- 所有已实现的接口:
BufferedImageOp,Cloneable
public class OilFilter extends WholeImageFilter
A filter which produces a "oil-painting" effect.
-
-
字段概要
-
从类继承的字段 org.meteoinfo.image.filter.WholeImageFilter
originalSpace, transformedSpace
-
-
构造器概要
构造器 构造器 说明 OilFilter()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected int[]filterPixels(int width, int height, int[] inPixels, Rectangle transformedSpace)Actually filter the pixels.intgetLevels()Get the number of levels for the effect.intgetRange()Get the range of the effect in pixels.voidsetLevels(int levels)Set the number of levels for the effect.voidsetRange(int range)Set the range of the effect in pixels.StringtoString()-
从类继承的方法 org.meteoinfo.image.filter.WholeImageFilter
filter, transformSpace
-
从类继承的方法 org.meteoinfo.image.filter.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
-
-
-
-
方法详细资料
-
setRange
public void setRange(int range)
Set the range of the effect in pixels.- 参数:
range- the range- 另请参阅:
getRange()
-
getRange
public int getRange()
Get the range of the effect in pixels.- 返回:
- the range
- 另请参阅:
setRange(int)
-
setLevels
public void setLevels(int levels)
Set the number of levels for the effect.- 参数:
levels- the number of levels- 另请参阅:
getLevels()
-
getLevels
public int getLevels()
Get the number of levels for the effect.- 返回:
- the number of levels
- 另请参阅:
setLevels(int)
-
filterPixels
protected int[] filterPixels(int width, int height, int[] inPixels, Rectangle transformedSpace)从类复制的说明:WholeImageFilterActually filter the pixels.- 指定者:
filterPixels在类中WholeImageFilter- 参数:
width- the image widthheight- the image heightinPixels- the image pixelstransformedSpace- the output bounds- 返回:
- the output pixels
-
-