Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
RGB to num and num to RGB
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00153956
Message ID:
00153970
Vues:
22
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform