Board index » delphi » Creating TColor with RGB values

Creating TColor with RGB values

Hi!

I have a red, green and blue value for a color. How can I create a TColor
value with these three components?

Thanks in advance!

 

Re:Creating TColor with RGB values


TColor:=$00bbggrr;

whereas the bb is the blue buye, gg the green byte and rr the red byte.
There might be a function doing that though.

Rene
--
Ing.Buero R.Tschaggelar - http://www.ibrtses.com

Quote
BlackWeezel wrote:

> Hi!

> I have a red, green and blue value for a color. How can I create a TColor
> value with these three components?

> Thanks in advance!

Re:Creating TColor with RGB values


Possibly TColor := RGB (<red>, <green>, <blue>);

David

Quote
"Rene Tschaggelar" <tschagge...@dplanet.ch> wrote in message

news:3A202411.FE13EEFF@dplanet.ch...
Quote
> TColor:=$00bbggrr;

> whereas the bb is the blue buye, gg the green byte and rr the red byte.
> There might be a function doing that though.

> Rene

[]

Other Threads