The Color_ConvertRGBToValue() function converts red, green and blue color levels to a color value.
Color_ConvertRGBToValue(red_level, green_level, blue_level)
• red_level – An integer specifying the level of red in the color. The value must be between 0 and 255.
• green_level – An integer specifying the level of green in the color. The value must be between 0 and 255.
• blue_level – An integer specifying the level of blue in the color. The value must be between 0 and 255.
A long integer containing the color value.
The colors created by this function look best when the system is displaying at least 65,535 colors. Otherwise, the colors may appear dithered.