Re: Modify R G and B of TColor
- From: Rob Kennedy <me3@xxxxxxxxxxx>
- Date: Tue, 26 Dec 2006 00:18:52 -0600
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
.
- Follow-Ups:
- Re: Modify R G and B of TColor
- From: Global
- Re: Modify R G and B of TColor
- References:
- Modify R G and B of TColor
- From: Global
- Modify R G and B of TColor
- Prev by Date: Re: A call to an OS Function failed??
- Next by Date: Re: getting an event handler from a active-x dll dispinterface
- Previous by thread: Re: Modify R G and B of TColor
- Next by thread: Re: Modify R G and B of TColor
- Index(es):