Package com.day.image

Class Dither


  • @Deprecated
    public class Dither
    extends java.lang.Object
    Deprecated.
    as of Communiqu� 3.1.0, use com.day.image.DitherOp instead, this class will be removed in the next release.
    The Dither provides the dithering capability for reducing colors of an image to 2, 4, 8, 16, 32, 64, 128 or 256 colors. The real number of colors at the end of color reduction depends on the color profile of the image under reduction.

    Currently the following two dithering algorithm's are supported :

    1. Simple reduction by reducing the bit width of the color components
        Reduction by reducing the bit width and doing some rudimentary error correction on neighbouring pixels.