Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
RGB
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Re: RGB
Divers
Thread ID:
00345771
Message ID:
00345889
Vues:
22
>Whoops got that backwards. It should be:
lntemp = lncolor
>lnmask = 255
><b>lnred</b> = BITAND(lntemp, lnmask)
>lntemp = BITRSHIFT(lntemp, 8)
>lngreen = BITAND(lntemp, lnmask)
>lntemp = BITRSHIFT(lntemp, 8)
><b>lnblue</b> = BITAND(lntemp, lnmask)
>Same goes for my orignal statement: red's the least significant 8 bits, blue's the most. Doh!


>> Doh!
^ that is definateley me on this issue.

I think you wrote an article on BIT*() functions. Fundamentally I understand what is going on however I have never had a need to use them so I do not really understand what is going on. I can take your examples and work with it and get where I need to be.

At the moment time constraints will probably force me to use FOXTOOLS and handle everything properly during install and init of the app. I can get around my problem another way, it is just not as bullet proof.

Thank you very much for your input. It looks like we need (maybe just I) a good VFP internal REVERSE color function.
What ben makes tracks for what wil be. Words in the air pirnt foot steps on the groun for us to put our feet in to.

Riddley Walker
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform