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.
-
diffusionMatrix
-
-
levels
-
-
DiffusionFilter()
- Construct a DiffusionFilter
-
getColorDither()
-
-
getLevels()
-
-
getMatrix()
-
-
getSerpentine()
- Return the serpentine setting
-
imageComplete(int)
-
-
setColorDither(boolean)
-
-
setLevels(int)
-
-
setMatrix(int[])
-
-
setSerpentine(boolean)
- Set whether to use a serpentine pattern for return or not.
-
toString()
-
diffusionMatrix
protected static final int diffusionMatrix[]
levels
public int levels
DiffusionFilter
public DiffusionFilter()
- Construct a DiffusionFilter
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
getSerpentine
public boolean getSerpentine()
- Return the serpentine setting
- Returns:
- the current setting
setColorDither
public void setColorDither(boolean colorDither)
getColorDither
public boolean getColorDither()
setMatrix
public void setMatrix(int matrix[])
getMatrix
public int[] getMatrix()
setLevels
public void setLevels(int levels)
getLevels
public int getLevels()
imageComplete
public void imageComplete(int status)
- Overrides:
- imageComplete in class java.awt.image.ImageFilter
toString
public java.lang.String toString()
- Overrides:
- toString in class java.lang.Object
All Packages Class Hierarchy This Package Previous Next Index