com.jhlabs.image
Class FBMFilter

java.lang.Object
  extended by com.jhlabs.image.AbstractBufferedImageOp
      extended by com.jhlabs.image.PointFilter
          extended by com.jhlabs.image.FBMFilter
All Implemented Interfaces:
ImageProcessorInterface, java.awt.image.BufferedImageOp, java.lang.Cloneable

public class FBMFilter
extends PointFilter
implements java.lang.Cloneable

A filter which produces textures from fractal Brownian motion.


Field Summary
static int CELLULAR
           
static int NOISE
           
static int RIDGED
           
static int SCNOISE
           
static int VLNOISE
           
 
Constructor Summary
FBMFilter()
           
 
Method Summary
 java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)
           
 int filterRGB(int x, int y, int rgb)
           
 float getAmount()
           
 float getAngle()
           
 Function2D getBasis()
           
 int getBasisType()
           
 float getBias()
           
 Colormap getColormap()
           
 float getGain()
           
 float getH()
           
 float getLacunarity()
           
 float getOctaves()
           
 int getOperation()
           
 float getScale()
           
 float getStretch()
           
 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)
           
 java.lang.String toString()
           
 
Methods inherited from class com.jhlabs.image.PointFilter
setDimensions
 
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp
createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, process, setRGB
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NOISE

public static final int NOISE
See Also:
Constant Field Values

RIDGED

public static final int RIDGED
See Also:
Constant Field Values

VLNOISE

public static final int VLNOISE
See Also:
Constant Field Values

SCNOISE

public static final int SCNOISE
See Also:
Constant Field Values

CELLULAR

public static final int CELLULAR
See Also:
Constant Field Values
Constructor Detail

FBMFilter

public FBMFilter()
Method Detail

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

public void setColormap(Colormap colormap)

getColormap

public Colormap getColormap()

setBasisType

public void setBasisType(int basisType)

getBasisType

public int getBasisType()

setBasis

public void setBasis(Function2D basis)

getBasis

public Function2D getBasis()

filter

public java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src,
                                           java.awt.image.BufferedImage dst)
Specified by:
filter in interface java.awt.image.BufferedImageOp
Overrides:
filter in class PointFilter

filterRGB

public int filterRGB(int x,
                     int y,
                     int rgb)
Specified by:
filterRGB in class PointFilter

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object