Board index » delphi » Getting RGB out of TColor

Getting RGB out of TColor

Hi all, how would I easily get the R, G & B values out of a TColor value?
Thanks in advance.

--
Paul Nicholls,
Live long and optimise.
--------------------------------
Web Page : www.southcom.com.au/~phantom
E-Mail        : phan...@southcom.com.au

 

Re:Getting RGB out of TColor


Quote
Paul Nicholls wrote:

> Hi all, how would I easily get the R, G & B values out of a
> TColor value? Thanks in advance.

    First, ColorToRGB. Then GetRValue, GetGValue, and GetBValue.

Marko;

Re:Getting RGB out of TColor


Thanks Marko, that's all I needed to know.  :)

--
Paul Nicholls,
Live long and optimise.
--------------------------------
Web Page : www.southcom.com.au/~phantom
E-Mail        : phan...@southcom.com.au

Re:Getting RGB out of TColor


type case using the
TRGBquad.
TRGB(MyColor).rgbRed := ????
 I not exactly sure on the member structure but you can find in the help..
Quote
Paul Nicholls wrote:
> Hi all, how would I easily get the R, G & B values out of a TColor value?
> Thanks in advance.

> --
> Paul Nicholls,
> Live long and optimise.
> --------------------------------
> Web Page : www.southcom.com.au/~phantom
> E-Mail        : phan...@southcom.com.au

Other Threads