Anyone have the equation to convert a long value (0-16777215) to the ~ RGB values?
Thanks,
Printable View
Anyone have the equation to convert a long value (0-16777215) to the ~ RGB values?
Thanks,
Maybe this thread will help?
ACtually it's not that hard:
Code:Red = lngValue mod 256
Green = int(lngValue / 256) mod 256
Blue = int(lngValue / 65536)