Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RGB to num and num to RGB
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00153956
Message ID:
00153970
Views:
21
>Hello every one!!
>
>I'd like to know (if it possible) to have the three value from the RBG
>
>EXAMPLE A= RGB(192,192,192) (A=12632256)
>
> How I can avec those values back
> EX: NUM2RGB(12632256)
>
>
>Thank you all
>
Hi Luc,

In addition to Ed's suggestion, the foxtools library has a function to do this. It's used this way:
* nRGBColor is the color number returned from the RGB() function
STORE 0 TO nRedVal, nGreenVal, nBlueVal
llresult = RGBComp(nRGBColor, @nRedVal, @nGreenVal, @nBlueVal)
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform