com.jhlabs.image
Class DitherFilter

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

public class DitherFilter
extends PointFilter
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
 boolean colorDither
           
 int cols
           
static int[] dither90Halftone6x6Matrix
           
static int[] ditherCluster3Matrix
           
static int[] ditherCluster4Matrix
           
static int[] ditherCluster8Matrix
           
static int[] ditherLines4x4Matrix
           
static int[] ditherOrdered4x4Matrix
           
static int[] ditherOrdered6x6Matrix
           
static int[] ditherOrdered8x8Matrix
           
 int levels
           
 int[] matrix
           
 int rows
           
 
Constructor Summary
DitherFilter()
           
 
Method Summary
 int filterRGB(int x, int y, int rgb)
           
 int getLevels()
           
 int[] getMatrix()
           
 void setLevels(int levels)
           
 void setMatrix(int[] matrix)
           
 java.lang.String toString()
           
 
Methods inherited from class com.jhlabs.image.PointFilter
filter, 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

ditherOrdered4x4Matrix

public static final int[] ditherOrdered4x4Matrix

ditherLines4x4Matrix

public static final int[] ditherLines4x4Matrix

dither90Halftone6x6Matrix

public static final int[] dither90Halftone6x6Matrix

ditherOrdered6x6Matrix

public static final int[] ditherOrdered6x6Matrix

ditherOrdered8x8Matrix

public static final int[] ditherOrdered8x8Matrix

ditherCluster3Matrix

public static final int[] ditherCluster3Matrix

ditherCluster4Matrix

public static final int[] ditherCluster4Matrix

ditherCluster8Matrix

public static final int[] ditherCluster8Matrix

matrix

public int[] matrix

rows

public int rows

cols

public int cols

levels

public int levels

colorDither

public boolean colorDither
Constructor Detail

DitherFilter

public DitherFilter()
Method Detail

setMatrix

public void setMatrix(int[] matrix)

getMatrix

public int[] getMatrix()

setLevels

public void setLevels(int levels)

getLevels

public int getLevels()

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