CColorRef Class
The CColorRef class encapsulates an RGB color triplet and provides methods for manipulating the values.
Construction |
Object = CColorRef:new() |
Destruction |
Object:delete() |
The properties in the table below are accessed directly, without using any methods.
R |
The red channel value in the range 0 through 255. |
G |
The green channel value in the range 0 through 255. |
B |
The blue channel value in the range 0 through 255. |
Creates a new instance of a CColorRef object. Various constructors are available. |
|
Deletes the instance of the CColorRef object. |
Opens the Windows ChooseColor tool for changing the color value. |
|
Opens the Windows ChooseColor tool in "open" mode showing the color palette. |
|
Inverts the R, G, and B values to form a complementary color. |
|
Converts the RGB triplet to a single gray value. |
Returns the R, G, and B values. |
|
Assigns values to the R, G, and B members. |