Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RGB
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Re: RGB
Miscellaneous
Thread ID:
00345771
Message ID:
00345814
Views:
21
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!
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform