// Jason Rohrer // Dither.h /** * * Dithering functions for decreasing number of bits per image sample * * Created 11-28-99 * Mods: */ // Dither a 32-bit image down to 16-bit, channel by channel // drop alpha // store 16 bit components in 32 bits... // store 16 bit as R:G:B = 5:5:5 void Dither16( unsigned long *image32, int imageHigh, int imageWide, unsigned long *image16, int ditherBlockSize = 4 );