Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
RGB( )
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Re: RGB( )
Divers
Thread ID:
00065722
Message ID:
00065739
Vues:
29
>Hello
>How can I get the red, green and blue components from the nColor represented as numeric value. For example: I have nColor variable. nColor=12632256. I want to get value: nRed=192,nGreen=192,nBlue=192
>Thanks.
>Denis Gavrikov.

Denis,

FOXTOOLS has a function RGBComp() to return this information. You can:

STORE 0 TO nRed, nGreen, nBlue
= RGBComp(nColor, @nRed, @nGreen, @nBlue)

to retrieve this information as well as Josh's suggestion.

hth,

George
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform