Class FloydSteinbergDitherer

  • All Implemented Interfaces:
    Ditherer

    public final class FloydSteinbergDitherer
    extends java.lang.Object
    implements Ditherer
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      QImage dither​(QImage image, java.util.Set<QColor> newColors)
      Dither the given image, producing a new image which only contains colors from the given color set.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • dither

        public QImage dither​(QImage image,
                             java.util.Set<QColor> newColors)
        Description copied from interface: Ditherer
        Dither the given image, producing a new image which only contains colors from the given color set.
        Specified by:
        dither in interface Ditherer
        Parameters:
        image - the original, unquantized image
        newColors - the quantized set of colors to be used in the new image
        Returns:
        a new image containing only of colors from newColors