public class FBMFilter extends PointFilter implements Cloneable
Modifier and Type | Field and Description |
---|---|
private float |
amount |
private float |
angle |
private Function2D |
basis |
private int |
basisType |
private float |
bias |
static int |
CELLULAR |
private Colormap |
colormap |
private FBM |
fBm |
private float |
gain |
private float |
H |
private float |
lacunarity |
private float |
m00 |
private float |
m01 |
private float |
m10 |
private float |
m11 |
private float |
max |
private float |
min |
static int |
NOISE |
private float |
octaves |
private int |
operation |
protected Random |
random |
private boolean |
ridged |
static int |
RIDGED |
private float |
scale |
static int |
SCNOISE |
private float |
stretch |
static int |
VLNOISE |
canFilterIndexColorModel
Constructor and Description |
---|
FBMFilter() |
Modifier and Type | Method and Description |
---|---|
BufferedImage |
filter(BufferedImage src,
BufferedImage dst) |
int |
filterRGB(int x,
int y,
int rgb) |
float |
getAmount()
Get the amount of texture.
|
float |
getAngle()
Returns the angle of the texture.
|
Function2D |
getBasis() |
int |
getBasisType() |
float |
getBias() |
Colormap |
getColormap()
Get the colormap to be used for the filter.
|
float |
getGain() |
float |
getH() |
float |
getLacunarity() |
float |
getOctaves() |
int |
getOperation() |
float |
getScale()
Returns the scale of the texture.
|
float |
getStretch()
Returns the stretch factor of the texture.
|
protected FBM |
makeFBM(float H,
float lacunarity,
float octaves) |
void |
setAmount(float amount)
Set the amount of effect.
|
void |
setAngle(float angle)
Specifies the angle of the texture.
|
void |
setBasis(Function2D basis) |
void |
setBasisType(int basisType) |
void |
setBias(float bias) |
void |
setColormap(Colormap colormap)
Set the colormap to be used for the filter.
|
void |
setGain(float gain) |
void |
setH(float H) |
void |
setLacunarity(float lacunarity) |
void |
setOctaves(float octaves) |
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.
|
String |
toString() |
setDimensions
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
public static final int NOISE
public static final int RIDGED
public static final int VLNOISE
public static final int SCNOISE
public static final int CELLULAR
private float scale
private float stretch
private float angle
private float amount
private float H
private float octaves
private float lacunarity
private float gain
private float bias
private int operation
private float m00
private float m01
private float m10
private float m11
private float min
private float max
private boolean ridged
private int basisType
private Function2D basis
public FBMFilter()
public void setAmount(float amount)
amount
- the amountgetAmount()
public float getAmount()
setAmount(float)
public void setOperation(int operation)
public int getOperation()
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 setOctaves(float octaves)
public float getOctaves()
public void setH(float H)
public float getH()
public void setLacunarity(float lacunarity)
public float getLacunarity()
public void setGain(float gain)
public float getGain()
public void setBias(float bias)
public float getBias()
public void setColormap(Colormap colormap)
colormap
- the colormapgetColormap()
public Colormap getColormap()
setColormap(com.jhlabs.image.Colormap)
public void setBasisType(int basisType)
public int getBasisType()
public void setBasis(Function2D basis)
public Function2D getBasis()
public BufferedImage filter(BufferedImage src, BufferedImage dst)
filter
in interface BufferedImageOp
filter
in class PointFilter
public int filterRGB(int x, int y, int rgb)
filterRGB
in class PointFilter
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses