DiffusionFilter

This filter converts an image to a specified number of colours using Floyd-Steinberg error diffusion dithering. It generally produces better results than ordered dithering, with less distinct "patterning". You can choose straight or serpentine dithering and the number of color levels to dither to.

DiffusionFilter
DiffusionFilter

Parameters:
  • int[] matrix - The dither matrix
  • int levels - The number of levels to dither to
  • boolean colorDither - true for color dithering, false for monochrome
  • boolean serpentine - true to use a serpentine pattern which reduces "cascading" effects