Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Parsing numeric color into rgb values
Message
De
22/02/1998 12:07:31
Christopher Holtz
Integral Computer Services, Inc.
Rochester, New York, États-Unis
 
 
À
19/02/1998 19:58:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00079984
Message ID:
00080333
Vues:
44
Thank You - worked like a charm.

- Chris


>r= bitand(rgb(255,0,0),x)
>g= Bitrshift(bitand(rgb(0,255,0),x),8)
>b= Bitrshift(bitand(rgb(0,0,255),x),16)
>
>...where x is your number.
>
>Bit functions are so cool.
>
>>I'd like to take a color numeric value, such as 15122532 and parse it into its separate rgb values.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform