[Solved] Converting Red, Green and Blue to RGB


Abdul’s answer is great, but it can be really slow when creating new objects of class Color thousands of times. The simplest way would be:

int rgb = (red << 16 | green << 8 | blue);

solved Converting Red, Green and Blue to RGB