View Single Post
Old 06-07-2004, 08:01 PM   #4 (permalink)
joe_bruin
LOAD "*",8,1
 
Join Date: Feb 2003
Location: la.ca.us
Posts: 254
joe_bruin is on a distinguished road
not quite (but close).

a 12bit RGB pixel is composed of 4 bits of red, 4 of green, and 4 of blue. if you have a 16bit variable holding the pixel, it's 0000RRRRGGGGBBBB (where every letter is 1 bit).

a 16bit RGB pixel is:
RRRRRGGGGGGBBBBB (5 reds, 6 greens, 5 blue bits).

the reds you have correct. the greens, you're a little off. you're missing one green bit. for the blue, you've captured an extra green bit.
joe_bruin is offline   Reply With Quote