Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RGB - returns
Message
 
To
15/11/1997 12:43:18
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00060073
Message ID:
00060544
Views:
19
>>Hi to all VFP users
>>
>>Can anybody tell me how can I return the RGB values (say 230,40,140) from a
>>selected colour within VFP.
>>I can get the value VFP addigns to it but that is of no use. I need the RGB
>>value.
>>
>>Thanks
>>
>>Willie
>
>x=someobject.backcolor
>b=bitand(x,255)
>g=bitand(bitrshift(x,8),255)
>r=bitand(bitrshift(x,16),255)

Thanks,
Getting better every time
Previous
Reply
Map
View

Click here to load this message in the networking platform