com.jhlabs.image
Class WoodFilter
- BufferedImageOp, Cloneable
A filter which produces a simulated wood texture. This is a bit of a hack, but might be usefult to some people.
int | filterRGB(int x, int y, int rgb)
|
float | getAngle() - Returns the angle of the texture.
|
Colormap | getColormap() - Get the colormap to be used for the filter.
|
float | getFibres() - Returns the amount of fibres in the texture.
|
float | getGain() - Returns the gain of the texture.
|
float | getRings() - Returns the rings value.
|
float | getScale() - Returns the scale of the texture.
|
float | getStretch() - Returns the stretch factor of the texture.
|
float | getTurbulence() - Returns the turbulence of the 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 | setFibres(float fibres) - Specifies the amount of fibres in the texture.
|
void | setGain(float gain) - Specifies the gain of the texture.
|
void | setRings(float rings) - Specifies the rings value.
|
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.
|
String | toString()
|
WoodFilter
public WoodFilter()
Construct a WoodFilter.
getAngle
public float getAngle()
Returns the angle of the texture.
- the angle of the texture.
getColormap
public Colormap getColormap()
Get the colormap to be used for the filter.
getFibres
public float getFibres()
Returns the amount of fibres in the texture.
- the amount of fibres in the texture.
getGain
public float getGain()
Returns the gain of the texture.
getRings
public float getRings()
Returns the rings value.
getScale
public float getScale()
Returns the scale of the texture.
- the scale of the texture.
getStretch
public float getStretch()
Returns the stretch factor of the texture.
- the stretch factor of the texture.
getTurbulence
public float getTurbulence()
Returns the turbulence of the texture.
- the turbulence of the texture.
setAngle
public void setAngle(float angle)
Specifies the angle of the texture.
angle
- the angle of the texture.
setColormap
public void setColormap(Colormap colormap)
Set the colormap to be used for the filter.
setFibres
public void setFibres(float fibres)
Specifies the amount of fibres in the texture.
fibres
- the amount of fibres in the texture.
setGain
public void setGain(float gain)
Specifies the gain of the texture.
gain
- the gain of the texture.
setRings
public void setRings(float rings)
Specifies the rings value.
setScale
public void setScale(float scale)
Specifies the scale of the texture.
scale
- the scale of the texture.
setStretch
public void setStretch(float stretch)
Specifies the stretch factor of the texture.
stretch
- the stretch factor of the texture.
setTurbulence
public void setTurbulence(float turbulence)
Specifies the turbulence of the texture.
turbulence
- the turbulence of the texture.
toString
public String toString()