Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do i convert getcolor() to RGB ?
Message
From
16/02/2000 08:27:56
David Fluker
NGIT - Centers For Disease Control
Decatur, Georgia, United States
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00331708
Message ID:
00332809
Views:
18
>>* bitmasking
>>lnRed = bitand( nColor, 0x000000ff )
>>lnGreen = bitrshift( bitand( nColor, 0x0000ff00 ), 8 )
>>lnBlue = bitrshift( bitand( nColor, 0x00ff0000), 16 )
>
>Sarek scribbles that one down, whapping himself over the head for not thinking of it himself....

Isn't "whapping himself over the head" a rather emotional response for Sarek?
David.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform