Color_ConvertRGBToValue()

Examples


The Color_ConvertRGBToValue() function converts red, green and blue color levels to a color value.

Syntax

Color_ConvertRGBToValue(red_level, green_level, blue_level)

Parameters

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.

Return value

A long integer containing the color value.

Comments

The colors created by this function look best when the system is displaying at least 65,535 colors. Otherwise, the colors may appear dithered.


Documentation Feedback