com.jhlabs.image

Class TextureFilter

Implemented Interfaces:
BufferedImageOp, Cloneable

public class TextureFilter
extends PointFilter

Field Summary

float
amount
float
bias
float
gain
int
operation
float
turbulence

Fields inherited from class com.jhlabs.image.PointFilter

canFilterIndexColorModel

Constructor Summary

TextureFilter()

Method Summary

int
filterRGB(int x, int y, int rgb)
float
getAmount()
Get the amount of texture.
float
getAngle()
Returns the angle of the texture.
Colormap
getColormap()
Get the colormap to be used for the filter.
Function2D
getFunction()
int
getOperation()
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
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.
String
toString()

Methods inherited from class com.jhlabs.image.PointFilter

filter, filterRGB, setDimensions

Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp

clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRGB, getRenderingHints, setRGB

Field Details

amount

public float amount

bias

public float bias

gain

public float gain

operation

public int operation

turbulence

public float turbulence

Constructor Details

TextureFilter

public TextureFilter()

Method Details

filterRGB

public int filterRGB(int x,
                     int y,
                     int rgb)
Overrides:
filterRGB in interface PointFilter

getAmount

public float getAmount()
Get the amount of texture.
Returns:
the amount

getAngle

public float getAngle()
Returns the angle of the texture.
Returns:
the angle of the texture.

getColormap

public Colormap getColormap()
Get the colormap to be used for the filter.
Returns:
the colormap

getFunction

public Function2D getFunction()

getOperation

public int getOperation()

getScale

public float getScale()
Returns the scale of the texture.
Returns:
the scale of the texture.

getStretch

public float getStretch()
Returns the stretch factor of the texture.
Returns:
the stretch factor of the texture.

getTurbulence

public float getTurbulence()
Returns the turbulence of the texture.
Returns:
the turbulence of the texture.

setAmount

public void setAmount(float amount)
Set the amount of texture.
Parameters:
amount - the amount

setAngle

public void setAngle(float angle)
Specifies the angle of the texture.
Parameters:
angle - the angle of the texture.

setColormap

public void setColormap(Colormap colormap)
Set the colormap to be used for the filter.
Parameters:
colormap - the colormap
See Also:
getColormap()

setFunction

public void setFunction(Function2D function)

setOperation

public void setOperation(int operation)

setScale

public void setScale(float scale)
Specifies the scale of the texture.
Parameters:
scale - the scale of the texture.

setStretch

public void setStretch(float stretch)
Specifies the stretch factor of the texture.
Parameters:
stretch - the stretch factor of the texture.

setTurbulence

public void setTurbulence(float turbulence)
Specifies the turbulence of the texture.
Parameters:
turbulence - the turbulence of the texture.

toString

public String toString()