Re: Modify R G and B of TColor
- From: "Rudy Velthuis" <newsgroups@xxxxxxxxxxxx>
- Date: Tue, 26 Dec 2006 13:53:51 +0000 (UTC)
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
.
- References:
- Modify R G and B of TColor
- From: Global
- Re: Modify R G and B of TColor
- From: Rob Kennedy
- Re: Modify R G and B of TColor
- From: Global
- Modify R G and B of TColor
- Prev by Date: Re: Modify R G and B of TColor
- Next by Date: Re: A call to an OS Function failed??
- Previous by thread: Re: Modify R G and B of TColor
- Index(es):