CimGraphControl.RGB (method)

Calculates a color based on the red, green and blue components supplied.
Syntax: OLE_COLOR = object.RGB ( Red, Green, Blue )
Parameters:
Red As short - Specifies the intensity of the red component of color (0-255).
Green As short - Specifies the intensity of the green component of color (0-255).
Blue As short - Specifies the intensity of the blue component of color (0-255).
Description: CimGraphControl.RGB provides you with a color based on the red, green and blue components supplied through its arguments.

Examples

cimOleObj.RGB(0, 0, 0) returns black color.
cimOleObj.RGB(255, 255, 255) returns white color.
cimOleObj.RGB(255, 0, 0) returns red color.
cimOleObj.RGB(0, 255, 0) returns green color.
cimOleObj.RGB(0, 0, 255) returns blue color.
cimOleObj.RGB(128, 128, 128) returns gray color.
cimOleObj.RGB(255, 255, 0) returns yellow color.