Unit ColorEd |
Classes |
TRgbColorProperty - The master property editor is TRgbColorProperty.
TRgbKludge -
Functions |
Register -
Types |
Constants |
Variables |
Functions |
Types |
TRgbValue = ByteTRgbColorProperty creates a TRgbKludge componentobject as a companion to each selected component. It defines the Red, Green, and Blue properties which become the subproperties of TRgbColorProperty. When any of the constituent color parts changes, TRgbKludge notifies the TRgbColorProperty editor, so it can update the TColor value. Remember that when a property value is set, the same value is set for all selected components. The RGB values are stored as Byte values. Thus, white is (255, 255, 255), and Black is (0,0,0). This allows the easiest way to create a TColor value, by using the RGB function. It is conceivable, however, that one might prefer, say, a 1..100 scale, or evey a floating point value between 0 and 1. I have also seen a 16-bit value used, although you lose that extra precision when converting to the TColor value.
Constants |
Variables |