Class DitherFilter

All Implemented Interfaces:
BufferedImageOp, Serializable, Cloneable

public class DitherFilter extends PointFilter implements Serializable
See Also:
  • Field Details

    • ditherMagic2x2Matrix

      protected static final int[] ditherMagic2x2Matrix
    • ditherMagic4x4Matrix

      protected static final int[] ditherMagic4x4Matrix
    • 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
    • mod

      protected int[] mod
    • div

      protected int[] div
    • map

      protected int[] map
    • colorDither

      public boolean colorDither
  • Constructor Details

    • DitherFilter

      public DitherFilter()
  • Method Details

    • setMatrix

      public void setMatrix(int[] matrix)
    • getMatrix

      public int[] getMatrix()
    • setLevels

      public void setLevels(int levels)
    • getLevels

      public int getLevels()
    • initialize

      protected void initialize()
    • filterRGB

      public int filterRGB(int x, int y, int rgb)
      Specified by:
      filterRGB in class PointFilter
    • toString

      public String toString()
      Overrides:
      toString in class Object