Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RGB - returns
Message
 
To
13/11/1997 16:14:37
Louis Schwartz
Strategic Investment Partners
Arlington, Virginia, United States
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00060073
Message ID:
00060199
Views:
26
>>Hi to all VFP users
>>
>>Can anybody tell me how can I return the RGB values (say 230,40,140) from a selected colour within VFP.
>>I can get the value VFP addigns to it but that is of no use. I need the RGB value.
>>
>>Thanks
>>
>>Willie
>
>Ignore my previous messages,
>the real answer is
>RGB = RGB(230,40,140)
>this means RGB = 9185510
>
>To decipher this
>
>Blue = FLOOR(RGB/65536) = 140
>
>Green = FLOOR((RGB-Blue*65536)/256) = 40
>
>Red = RGB - Blue*65536 - Green*256 = 230
>
>Sorry about previous replys

Thanks for all your help

I do appreciate it.

Willie
Previous
Reply
Map
View

Click here to load this message in the networking platform