Skip to content

cyotek/Dithering

Repository files navigation

Image Dithering using C#

This sample program demonstrates how to use various algorithms to dither an image using C#.

Sample program screenshot

Please refer to the following articles on cyotek.com for more details

Resources

DHALF.TXT was obtained from http://www.efg2.com/Lab/Library/ImageProcessing/DHALF.TXT DITHER.TXT was obtained from http://cd.textfiles.com/graphics16000/FORMATS/GIF/DITHER2.TXT

Referenced, but missing - if you find copies of these documents let me know!

  • BURKES.ARC
  • NUDTHR.ARC
  • IDTVGA.TXT
  • DGIF.ZIP

Screenshots

An example of Atkinson error diffusion, this time used in conjunction with a 256 fixed palette quantization.

dithering-atkinson-color

An example of ordering dithering using an 8x8 Bayer matrix, demonstrating the classic hatching patterns associated with this style of dithering.

dithering-bayer8