Package com.jhlabs.image
Class TextureFilter
java.lang.Object
com.jhlabs.image.AbstractBufferedImageOp
com.jhlabs.image.PointFilter
com.jhlabs.image.TextureFilter
- All Implemented Interfaces:
BufferedImageOp
,Cloneable
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloat
float
float
int
float
Fields inherited from class com.jhlabs.image.PointFilter
canFilterIndexColorModel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
filterRGB
(int x, int y, int rgb) float
Get the amount of texture.float
getAngle()
Returns the angle of the texture.Get the colormap to be used for the filter.int
float
getScale()
Returns the scale of the texture.float
Returns the stretch factor of the texture.float
Returns the turbulence of the texture.void
setAmount
(float amount) Set the amount of texture.void
setAngle
(float angle) Specifies the angle of the texture.void
setColormap
(Colormap colormap) Set the colormap to be used for the filter.void
setFunction
(Function2D function) void
setOperation
(int operation) void
setScale
(float scale) Specifies the scale of the texture.void
setStretch
(float stretch) Specifies the stretch factor of the texture.void
setTurbulence
(float turbulence) Specifies the turbulence of the texture.toString()
Methods inherited from class com.jhlabs.image.PointFilter
filter, setDimensions
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
-
Field Details
-
amount
public float amount -
turbulence
public float turbulence -
gain
public float gain -
bias
public float bias -
operation
public int operation
-
-
Constructor Details
-
TextureFilter
public TextureFilter()
-
-
Method Details
-
setAmount
public void setAmount(float amount) Set the amount of texture.- Parameters:
amount
- the amount- See Also:
-
getAmount
public float getAmount()Get the amount of texture.- Returns:
- the amount
- See Also:
-
setFunction
-
getFunction
-
setOperation
public void setOperation(int operation) -
getOperation
public int getOperation() -
setScale
public void setScale(float scale) Specifies the scale of the texture.- Parameters:
scale
- the scale of the texture.- See Also:
-
getScale
public float getScale()Returns the scale of the texture.- Returns:
- the scale of the texture.
- See Also:
-
setStretch
public void setStretch(float stretch) Specifies the stretch factor of the texture.- Parameters:
stretch
- the stretch factor of the texture.- See Also:
-
getStretch
public float getStretch()Returns the stretch factor of the texture.- Returns:
- the stretch factor of the texture.
- See Also:
-
setAngle
public void setAngle(float angle) Specifies the angle of the texture.- Parameters:
angle
- the angle of the texture.- See Also:
-
getAngle
public float getAngle()Returns the angle of the texture.- Returns:
- the angle of the texture.
- See Also:
-
setTurbulence
public void setTurbulence(float turbulence) Specifies the turbulence of the texture.- Parameters:
turbulence
- the turbulence of the texture.- See Also:
-
getTurbulence
public float getTurbulence()Returns the turbulence of the texture.- Returns:
- the turbulence of the texture.
- See Also:
-
setColormap
Set the colormap to be used for the filter.- Parameters:
colormap
- the colormap- See Also:
-
getColormap
Get the colormap to be used for the filter.- Returns:
- the colormap
- See Also:
-
filterRGB
public int filterRGB(int x, int y, int rgb) - Specified by:
filterRGB
in classPointFilter
-
toString
-