Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Converting from Web color to RGB
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00536716
Message ID:
00536886
Views:
8
You are right. I always forget about the reverse order of the bytes.

>Sergey,
>
>This isn't right. In VFP the color bytes are stored BGR.
>
>? rgb( 255,0,0)
>? rgb( 0,255,0)
>? rgb( 0,0,255)
>
>In HTML they are stored RGB, so you have to reverse the byte order. The VFP color would be:
>
>? eval( "0x929cb4" )
>
>>>From this Web color, "B49C92", how can I find its RGB equivalent?
>>
>>Michel,
>>It is in RGB hexadecimal format
lcWebColor = "B49C92"
>>? EVAL("0x" + lcWebColor)
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform