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:
00717590
Vues:
17
This message has been marked as the solution to the initial question of the thread.
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform