how do you color mask a 32 bit unsigned integer for the red, green, and blue values
is it like this? (color_to_be_masked>>8)
This should get you the result you want:
short red = (color >> 16) & 0xFF; short green = (color >> 8) & 0xFF; short blue = (color) & 0xFF;