com.jhlabs.image
Class DitherFilter
- BufferedImageOp, Cloneable
public class DitherFilter
A filter which performs ordered dithering on an image.
dither90Halftone6x6Matrix
public static final int[] dither90Halftone6x6Matrix
6x6 90 degree halftone.
ditherCluster3Matrix
public static final int[] ditherCluster3Matrix
Order-3 clustered dither.
ditherCluster4Matrix
public static final int[] ditherCluster4Matrix
Order-4 clustered dither.
ditherCluster8Matrix
public static final int[] ditherCluster8Matrix
Order-8 clustered dither.
ditherLines4x4Matrix
public static final int[] ditherLines4x4Matrix
4x4 lines.
ditherMagic2x2Matrix
protected static final int[] ditherMagic2x2Matrix
2x2 magic square.
ditherMagic4x4Matrix
protected static final int[] ditherMagic4x4Matrix
4x4 magic square.
ditherOrdered4x4Matrix
public static final int[] ditherOrdered4x4Matrix
4x4 ordered dither.
ditherOrdered6x6Matrix
public static final int[] ditherOrdered6x6Matrix
Order-6 ordered dither.
ditherOrdered8x8Matrix
public static final int[] ditherOrdered8x8Matrix
Order-8 ordered dither.
DitherFilter
public DitherFilter()
Constuct a DitherFilter.
getLevels
public int getLevels()
Get the number of dither levels.
getMatrix
public int[] getMatrix()
Get the dither matrix.
initialize
protected void initialize()
Initialize the filter.
setLevels
public void setLevels(int levels)
Set the number of dither levels.
levels
- the number of levels
setMatrix
public void setMatrix(int[] matrix)
Set the dither matrix.
matrix
- the dither matrix
toString
public String toString()