Get RGB Color with TColor

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Get RGB Color with TColor

Ryo T
How to get Red, Green, Blue value with TColor
(TColorDialog object) in Delphi ?


==============
    12y0
  The ~'S'~

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com 
_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

Re: Get RGB Color with TColor

Mattias Gaertner
On Tue, 21 Feb 2006 18:28:37 -0800 (PST)
Ryo T <[hidden email]> wrote:

> How to get Red, Green, Blue value with TColor
> (TColorDialog object) in Delphi ?

Myabe the same as in Lazarus:

Red:=Graphics.Red(ColorDialog.Color);
Green:=Graphics.Green(ColorDialog.Color);
Blue:=Graphics.Blue(ColorDialog.Color);

or

RedGreenBlue(ColorDialog.Color,Red,Green,Blue);


Mattias
_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal