|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jhlabs.image.AbstractBufferedImageOp
com.jhlabs.image.PointFilter
com.jhlabs.image.WoodFilter
public class WoodFilter
A filter which produces a simulated wood texture. This is a bit of a hack, but might be usefult to some people.
Field Summary |
---|
Fields inherited from class com.jhlabs.image.PointFilter |
---|
canFilterIndexColorModel |
Constructor Summary | |
---|---|
WoodFilter()
Construct a WoodFilter. |
Method Summary | |
---|---|
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. |
java.lang.String |
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 |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public WoodFilter()
Method Detail |
---|
public void setRings(float rings)
rings
- the rings value.getRings()
public float getRings()
setRings(float)
public void setScale(float scale)
scale
- the scale of the texture.getScale()
public float getScale()
setScale(float)
public void setStretch(float stretch)
stretch
- the stretch factor of the texture.getStretch()
public float getStretch()
setStretch(float)
public void setAngle(float angle)
angle
- the angle of the texture.getAngle()
public float getAngle()
setAngle(float)
public void setTurbulence(float turbulence)
turbulence
- the turbulence of the texture.getTurbulence()
public float getTurbulence()
setTurbulence(float)
public void setFibres(float fibres)
fibres
- the amount of fibres in the texture.getFibres()
public float getFibres()
setFibres(float)
public void setGain(float gain)
gain
- the gain of the texture.getGain()
public float getGain()
setGain(float)
public void setColormap(Colormap colormap)
colormap
- the colormapgetColormap()
public Colormap getColormap()
setColormap(com.jhlabs.image.Colormap)
public int filterRGB(int x, int y, int rgb)
filterRGB
in class PointFilter
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |