#11001 - arthur - Tue Sep 23, 2003 9:55 am
Ok I know that you can use a macro like such:
#define RGB_16BIT(r,g,b) (r+(g<<5)+(b<<10))
to encode a 16 bit value with rgb components. Now how would you go the other way round. i.e. take a 16bit value and return the 3 component values as u8's?
#define RGB_16BIT(r,g,b) (r+(g<<5)+(b<<10))
to encode a 16 bit value with rgb components. Now how would you go the other way round. i.e. take a 16bit value and return the 3 component values as u8's?