j2d.filters
Class DiffuseFilter

java.lang.Object
  extended by j2d.filters.AbstractBufferedImageOp
      extended by j2d.filters.TransformFilter
          extended by j2d.filters.DiffuseFilter
All Implemented Interfaces:
ImageProcessorInterface, java.awt.image.BufferedImageOp, java.io.Serializable, java.lang.Cloneable

public class DiffuseFilter
extends TransformFilter

This filter diffuses an image by moving its pixels in random directions.

See Also:
Serialized Form

Field Summary
 float[] cosTable
           
 float scale
           
 float[] sinTable
           
 
Fields inherited from class j2d.filters.TransformFilter
BILINEAR, CLAMP, NEAREST_NEIGHBOUR, WRAP, ZERO
 
Constructor Summary
DiffuseFilter()
           
 
Method Summary
 java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)
           
 float getScale()
           
 void setScale(float scale)
           
 java.lang.String toString()
           
 
Methods inherited from class j2d.filters.TransformFilter
getBilinear, getEdgeAction, getInterpolation, getNearestNeighbour, getOriginalSpace, getTransformedSpace, setEdgeAction, setInterpolation, setOriginalSpace, setTransformedSpace
 
Methods inherited from class j2d.filters.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

scale

public float scale
Constructor Detail

DiffuseFilter

public DiffuseFilter()
Method Detail

setScale

public void setScale(float scale)

getScale

public float getScale()

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