Extracting R,G,B data?
Steve Whitmore

Hey folks,

I'm sure it involves bit-shifting (which I'm not too well-versed in), but how does one extract the individual red, green, and blue values from an integer storing pixel data in, say, a 16-bit colour depth?

Thanks in advance! :)

X-G

dsdsfgsdfgsdsgdf getr getg getb sgfsdfhgsdfnbvc n

Steve Whitmore

whomp D'oh. :)

Jonatan Hedborg

I'll throw in a "RTFM" for good measure.

Thread #588822. Printed from Allegro.cc