类 MarbleFilter
- java.lang.Object
-
- org.meteoinfo.image.filter.AbstractBufferedImageOp
-
- org.meteoinfo.image.filter.TransformFilter
-
- org.meteoinfo.image.filter.MarbleFilter
-
- 所有已实现的接口:
BufferedImageOp,Cloneable
public class MarbleFilter extends TransformFilter
This filter applies a marbling effect to an image, displacing pixels by random amounts.
-
-
字段概要
-
从类继承的字段 org.meteoinfo.image.filter.TransformFilter
BILINEAR, CLAMP, edgeAction, interpolation, NEAREST_NEIGHBOUR, originalSpace, RGB_CLAMP, transformedSpace, WRAP, ZERO
-
-
构造器概要
构造器 构造器 说明 MarbleFilter()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 BufferedImagefilter(BufferedImage src, BufferedImage dst)floatgetAmount()Get the amount of effect.floatgetTurbulence()Returns the turbulence of the effect.floatgetXScale()Get the X scale of the effect.floatgetYScale()Get the Y scale of the effect.voidsetAmount(float amount)Set the amount of effect.voidsetTurbulence(float turbulence)Specifies the turbulence of the effect.voidsetXScale(float xScale)Set the X scale of the effect.voidsetYScale(float yScale)Set the Y scale of the effect.StringtoString()protected voidtransformInverse(int x, int y, float[] out)Inverse transform a point.-
从类继承的方法 org.meteoinfo.image.filter.TransformFilter
filterPixelsNN, getEdgeAction, getInterpolation, setEdgeAction, setInterpolation, transformSpace
-
从类继承的方法 org.meteoinfo.image.filter.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
-
-
-
-
方法详细资料
-
setXScale
public void setXScale(float xScale)
Set the X scale of the effect.- 参数:
xScale- the scale.- 另请参阅:
getXScale()
-
getXScale
public float getXScale()
Get the X scale of the effect.- 返回:
- the scale.
- 另请参阅:
setXScale(float)
-
setYScale
public void setYScale(float yScale)
Set the Y scale of the effect.- 参数:
yScale- the scale.- 另请参阅:
getYScale()
-
getYScale
public float getYScale()
Get the Y scale of the effect.- 返回:
- the scale.
- 另请参阅:
setYScale(float)
-
setAmount
public void setAmount(float amount)
Set the amount of effect.- 参数:
amount- the amount min-value 0 max-value 1- 另请参阅:
getAmount()
-
getAmount
public float getAmount()
Get the amount of effect.- 返回:
- the amount
- 另请参阅:
setAmount(float)
-
setTurbulence
public void setTurbulence(float turbulence)
Specifies the turbulence of the effect.- 参数:
turbulence- the turbulence of the effect. min-value 0 max-value 1- 另请参阅:
getTurbulence()
-
getTurbulence
public float getTurbulence()
Returns the turbulence of the effect.- 返回:
- the turbulence of the effect.
- 另请参阅:
setTurbulence(float)
-
transformInverse
protected void transformInverse(int x, int y, float[] out)从类复制的说明:TransformFilterInverse transform a point. This method needs to be overriden by all subclasses.- 指定者:
transformInverse在类中TransformFilter- 参数:
x- the X position of the pixel in the output imagey- the Y position of the pixel in the output imageout- the position of the pixel in the input image
-
filter
public BufferedImage filter(BufferedImage src, BufferedImage dst)
- 指定者:
filter在接口中BufferedImageOp- 覆盖:
filter在类中TransformFilter
-
-