I'm a complete newbie on this topic. How are various colour depths ecoded exactly? For example, I believe 8 bit/pixel is 3 bits for red and green and 2 for blue? What about 16bit, and 32bit? Are they just scaled up versions of 8 bit (ie with less bits allocated for the blue part)? What about the RGB value, is that 24 bit? Is there a way to convert between the various colour depths?
I know this isn't exactly a C question, but I need to know it for a C project and I strongly suspect 99% of C programmers reading this will know the answer ;)
Thanks for any help,