com.jhlabs.image
Class MarbleFilter

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

public class MarbleFilter
extends TransformFilter

This filter applies a marbling effect to an image, displacing pixels by random amounts.


Field Summary
 float amount
           
 float[] cosTable
           
 float[] sinTable
           
 float turbulence
           
 float xScale
           
 float yScale
           
 
Fields inherited from class com.jhlabs.image.TransformFilter
BILINEAR, CLAMP, NEAREST_NEIGHBOUR, WRAP, ZERO
 
Constructor Summary
MarbleFilter()
           
 
Method Summary
 java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)
           
 float getAmount()
           
 float getTurbulence()
           
 float getXScale()
           
 float getYScale()
           
 void setAmount(float amount)
           
 void setTurbulence(float turbulence)
           
 void setXScale(float xScale)
           
 void setYScale(float yScale)
           
 java.lang.String toString()
           
 
Methods inherited from class com.jhlabs.image.TransformFilter
getBilinear, getEdgeAction, getInterpolation, getNearestNeighbour, getOriginalSpace, getTransformedSpace, setEdgeAction, setInterpolation, setOriginalSpace, setTransformedSpace
 
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

sinTable

public float[] sinTable

cosTable

public float[] cosTable

xScale

public float xScale

yScale

public float yScale

amount

public float amount

turbulence

public float turbulence
Constructor Detail

MarbleFilter

public MarbleFilter()
Method Detail

setXScale

public void setXScale(float xScale)

getXScale

public float getXScale()

setYScale

public void setYScale(float yScale)

getYScale

public float getYScale()

setAmount

public void setAmount(float amount)

getAmount

public float getAmount()

setTurbulence

public void setTurbulence(float turbulence)

getTurbulence

public float getTurbulence()

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 TransformFilter

toString

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