title: How to convert 24 bit RGB to 8 bit RGB
body: <p>I was wondering what is the best way to convert a 24-bit RGB color (8 bits per color) into an 8-bit color (2bits Blue, 3 Green, 3 Red). I'd like C code for doing this.</p>