Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Converting from Web color to RGB
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00536716
Message ID:
00536882
Vues:
9
Sergey,

This isn't right. In VFP the color bytes are stored BGR.

? rgb( 255,0,0)
? rgb( 0,255,0)
? rgb( 0,0,255)

In HTML they are stored RGB, so you have to reverse the byte order. The VFP color would be:

? eval( "0x929cb4" )

>>From this Web color, "B49C92", how can I find its RGB equivalent?
>
>Michel,
>It is in RGB hexadecimal format
lcWebColor = "B49C92"
>? EVAL("0x" + lcWebColor)
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform