- const int R = LineColor.Red() / 16;
- const int G = LineColor.Green() / 16;
- const int B = LineColor.Blue() / 16;
+ const unsigned char R = (unsigned char)(LineColor.Red() / 16);
+ const unsigned char G = (unsigned char)(LineColor.Green() / 16);
+ const unsigned char B = (unsigned char)(LineColor.Blue() / 16);