I'm trying to back-engineer the maths behind RGB_Values. Here is what it says in the MMF help file:
Allows you to replace a color by another one in the current image of the object. Select the color to replace in the color selector, or via the Calculation button, and then the new color. The Calculation button in the Color selector allows you to enter a RGB value. A RGB value can be calculated from its Red, Green, and Blue components by the following formula:
RGB_Value = B*65536 + G*256 + R.
To extract the R, B and B components from a RGB value, use:
R = RGB_Value AND 255
G = (RGB_Value / 256) AND 255
B = (RGB_Value / 65536) AND 255"
I can create the RGB_Value without issue given the three R, G and B numbers between 0 and 255. But what if I want to back-engineer an RGB_Value to get the individual RGB components? I can't understand the maths listed in the help file to do this above?!? So if I have an RGB_Value of 16777215, which is pure white, how do I back-engineer this number to get 255, 255, 255?