Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do i convert getcolor() to RGB ?
Message
From
15/02/2000 11:35:34
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00331708
Message ID:
00332252
Views:
12
Another for the collection:

* bitmasking
lnRed = bitand( nColor, 0x000000ff )
lnGreen = bitrshift( bitand( nColor, 0x0000ff00 ), 8 )
lnBlue = bitrshift( bitand( nColor, 0x00ff0000), 16 )
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform