Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Convert Integer into RGB color pairs
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00717572
Message ID:
00717729
Vues:
15
Thanks!

>Try this:
>
>lnRed = BITAND(lnIntegerColor, 255)
>lnGreen = BITRSHIFT(BITAND(lnIntegerColor, 256^2 - 1), 8)
>lnBlue = BITRSHIFT(BITAND(lnIntegerColor, 256^3 - 1), 16)
>
>HTH
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform