Re: Modify R G and B of TColor



Global wrote:
I have a TColor variable to which I want to modify R G B. I want to raise each by 1.

A TColor value doesn't necessarily have R, G, and B components. Call the ColorToRGB function to turn a TColor into a Windows ColorRef value.

You can use the GetRValue, GetGValue, and GetBValue API functions to extract each component of a color. Do whatever operations you want on those values, and then use the RGB function to compose them into a single color value again.

--
Rob
.