Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Formulation to convert a color number to RGB breakdown
Message
From
20/11/2001 09:05:57
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00583871
Message ID:
00583875
Views:
19
This message has been marked as the solution to the initial question of the thread.
>If you happen to know the formulation of converting a color # into RGB breakdown, could you please share it with me. For instance White color number is 16777215, I am looking formulation which gets RGB(255,255,255).
>
>Thank you,
R = mod( #, 256 )
G = mod( int( # / 256 ), 256 )
B = mod( int( # / 65536 ), 256 )
Len Speed
Previous
Reply
Map
View

Click here to load this message in the networking platform