Re: Modify R G and B of TColor



Global wrote:

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.



How to make RGB into TColor again? RGB(r, g, b) is that actually
make a TColor value?

Yes. TColor can be two different things: an RGB value, or a negative
value indicating one of the system colours. If you have a 24 bit RGB
value, you can simply use it as TColor.

--
Rudy Velthuis http://rvelthuis.de/

"Who the hell wants to hear actors talk?"
-- H. M. Warner (1881-1958), founder of Warner Brothers, in 1927
.