Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Formulation to convert a color number to RGB breakdown
Message
De
20/11/2001 09:05:57
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00583871
Message ID:
00583875
Vues:
25
This message has been marked as the solution to the initial question of the thread.
>If you happen to know the formulation of converting a color # into RGB breakdown, could you please share it with me. For instance White color number is 16777215, I am looking formulation which gets RGB(255,255,255).
>
>Thank you,
R = mod( #, 256 )
G = mod( int( # / 256 ), 256 )
B = mod( int( # / 65536 ), 256 )
Len Speed
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform