All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.jhlabs.image.DiffusionFilter

java.lang.Object
   |
   +----java.awt.image.ImageFilter
           |
           +----com.jhlabs.image.WholeImageFilter
                   |
                   +----com.jhlabs.image.DiffusionFilter

public class DiffusionFilter
extends com.jhlabs.image.WholeImageFilter
A filter which uses Floyd-Steinberg error diffusion dithering to halftone an image.


Variable Index

 o diffusionMatrix
 o levels

Constructor Index

 o DiffusionFilter()
Construct a DiffusionFilter

Method Index

 o getColorDither()
 o getLevels()
 o getMatrix()
 o getSerpentine()
Return the serpentine setting
 o imageComplete(int)
 o setColorDither(boolean)
 o setLevels(int)
 o setMatrix(int[])
 o setSerpentine(boolean)
Set whether to use a serpentine pattern for return or not.
 o toString()

Variables

 o diffusionMatrix
 protected static final int diffusionMatrix[]
 o levels
 public int levels

Constructors

 o DiffusionFilter
 public DiffusionFilter()
Construct a DiffusionFilter

Methods

 o setSerpentine
 public void setSerpentine(boolean serpentine)
Set whether to use a serpentine pattern for return or not. This can reduce 'avalanche' artifacts in the output.

Parameters:
serpentine - true to use serpentine pattern
 o getSerpentine
 public boolean getSerpentine()
Return the serpentine setting

Returns:
the current setting
 o setColorDither
 public void setColorDither(boolean colorDither)
 o getColorDither
 public boolean getColorDither()
 o setMatrix
 public void setMatrix(int matrix[])
 o getMatrix
 public int[] getMatrix()
 o setLevels
 public void setLevels(int levels)
 o getLevels
 public int getLevels()
 o imageComplete
 public void imageComplete(int status)
Overrides:
imageComplete in class java.awt.image.ImageFilter
 o toString
 public java.lang.String toString()
Overrides:
toString in class java.lang.Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index