Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
RGB(r,g,b) == x
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00586236
Message ID:
00586626
Vues:
17
>Greetings my friends. :)
>
>One more of those tiny easy questions:
>
>?RGB(150,120,0) returns 30870. No problem.
>
>But, how can I get the RGB components from 30870?
>
>I want to do something like :
>
>x = Form.BackColor
>
>RedComponent = RED(x)
>GreenComponent = GREEN(x)
>BlueComponent = BLUE(x)
>
>Any help is welcome.
>
>TIA
>
>Alonso

In addition to other solutions just a note that there is an easy way to get the RGB values in the development environment.
Type the number (i.e 30870) into any Color... properties shown in the Property Sheet. The number will be immediately "disassembled" to RGB components.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform