 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
SVC Guest
|
Posted: Fri May 27, 2005 1:54 pm Post subject: RGB color system |
|
|
Hi,
Any reason why the RGB coloring number doesn't work?
For example, if I use (i.e., Edit1->Color = 0xffd700):
Gold (0xFFD700), I'm getting cyan
Peach(0xFFDAB9), I'm getting light blue
Orange(0xFFA500), I'm getting blue
Thanks,
S.
|
|
| Back to top |
|
 |
Bruce Salzman Guest
|
Posted: Fri May 27, 2005 1:58 pm Post subject: Re: RGB color system |
|
|
| Quote: | Any reason why the RGB coloring number doesn't work?
For example, if I use (i.e., Edit1->Color = 0xffd700):
Gold (0xFFD700), I'm getting cyan
Peach(0xFFDAB9), I'm getting light blue
Orange(0xFFA500), I'm getting blue
|
Use the RGB() macro. It puts the components in the correct order
(b,g,r) for you.
--
Bruce
|
|
| Back to top |
|
 |
François Charton Guest
|
Posted: Fri May 27, 2005 4:12 pm Post subject: Re: RGB color system |
|
|
"SVC" <svchamlian (AT) hotmail (DOT) com> a écrit dans le message de news:
[email]429726a3 (AT) newsgroups (DOT) borland.com[/email]...
| Quote: | Hi,
Any reason why the RGB coloring number doesn't work?
For example, if I use (i.e., Edit1->Color = 0xffd700):
Gold (0xFFD700), I'm getting cyan
Peach(0xFFDAB9), I'm getting light blue
Orange(0xFFA500), I'm getting blue
|
TColor is 0x00BBGGRR, not 0x00RRGGBB,
try TColor Gold=TColor(0x0000D7FF) everything should work all right.
Francois
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|