Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Converting Color Values
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00563099
Message ID:
00563111
Views:
21
Hi!

nR+nG*256+nB*256*256

>Anyone know how to convert RGB color pairs to a
>number, like GETCOLOR() returns?
>
>For example, RGB(255,255,255) = 16777215 (White). I want to
>pass in the values 255,255,255 and get back 16777215.
>
>Thanks
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Reply
Map
View

Click here to load this message in the networking platform