Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to find RGB under the mouse pointer
Message
De
06/09/2008 16:26:36
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 6
OS:
Windows '98
Divers
Thread ID:
01118470
Message ID:
01345429
Vues:
25
>Thanks you so much for the sample code. Can you also tell tell us how convert that to Hex? 16777215 = #FFFFFF for web design use.

For web, you need to remember that Fox keeps its numbers in BGR, not RGB order. So when you transform your number

lcHex=right(transform(lnColorNumber, "@0"), 6)

you will get six hex digits but the first two will be for blue, then two for green, two for red. You would need to cut this string and put it together in RGB order.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform