Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
RGB - returns
Message
De
13/11/1997 16:14:37
Louis Schwartz
Strategic Investment Partners
Arlington, Virginie, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00060073
Message ID:
00060095
Vues:
28
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform