Package com.jhlabs.image
Class FBMFilter
java.lang.Object
com.jhlabs.image.AbstractBufferedImageOp
com.jhlabs.image.PointFilter
com.jhlabs.image.FBMFilter
- All Implemented Interfaces:
BufferedImageOp
,Cloneable
A filter which produces textures from fractal Brownian motion.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
protected Random
static final int
static final int
static final int
Fields inherited from class com.jhlabs.image.PointFilter
canFilterIndexColorModel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfilter
(BufferedImage src, BufferedImage dst) int
filterRGB
(int x, int y, int rgb) float
float
getAngle()
getBasis()
int
float
getBias()
float
getGain()
float
getH()
float
float
int
float
getScale()
float
protected FBM
makeFBM
(float H, float lacunarity, float octaves) void
setAmount
(float amount) void
setAngle
(float angle) void
setBasis
(Function2D basis) void
setBasisType
(int basisType) void
setBias
(float bias) void
setColormap
(Colormap colormap) void
setGain
(float gain) void
setH
(float H) void
setLacunarity
(float lacunarity) void
setOctaves
(float octaves) void
setOperation
(int operation) void
setScale
(float scale) void
setStretch
(float stretch) toString()
Methods inherited from class com.jhlabs.image.PointFilter
setDimensions
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
-
Field Details
-
NOISE
public static final int NOISE- See Also:
-
RIDGED
public static final int RIDGED- See Also:
-
VLNOISE
public static final int VLNOISE- See Also:
-
SCNOISE
public static final int SCNOISE- See Also:
-
CELLULAR
public static final int CELLULAR- See Also:
-
random
-
-
Constructor Details
-
FBMFilter
public FBMFilter()
-
-
Method Details
-
setAmount
public void setAmount(float amount) -
getAmount
public float getAmount() -
setOperation
public void setOperation(int operation) -
getOperation
public int getOperation() -
setScale
public void setScale(float scale) -
getScale
public float getScale() -
setStretch
public void setStretch(float stretch) -
getStretch
public float getStretch() -
setAngle
public void setAngle(float angle) -
getAngle
public float getAngle() -
setOctaves
public void setOctaves(float octaves) -
getOctaves
public float getOctaves() -
setH
public void setH(float H) -
getH
public float getH() -
setLacunarity
public void setLacunarity(float lacunarity) -
getLacunarity
public float getLacunarity() -
setGain
public void setGain(float gain) -
getGain
public float getGain() -
setBias
public void setBias(float bias) -
getBias
public float getBias() -
setColormap
-
getColormap
-
setBasisType
public void setBasisType(int basisType) -
getBasisType
public int getBasisType() -
setBasis
-
getBasis
-
makeFBM
-
filter
- Specified by:
filter
in interfaceBufferedImageOp
- Overrides:
filter
in classPointFilter
-
filterRGB
public int filterRGB(int x, int y, int rgb) - Specified by:
filterRGB
in classPointFilter
-
toString
-