Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Dword conversion

Author
Message
MatriX
21
Years of Service
User Offline
Joined: 19th Oct 2003
Location: Deer Park, New York
Posted: 9th Jun 2007 08:27
If I use POINT(X,Y) I get a DWORD value. Something like 15855166. How do I convert that to RGB numbers? I'm trying to get the separate RGB components out of it.

Thanks for any help..

Thank you TGC for creating such amazing products!

Success does not come with meeting the minimum requirements.
Mr X
19
Years of Service
User Offline
Joined: 25th Sep 2005
Location: Universe, milkyway, sol-system, Earth...
Posted: 9th Jun 2007 11:29
The commands 'rgbr', 'rgbg' and 'rgbb' extracts the components from and rgb value.
MatriX
21
Years of Service
User Offline
Joined: 19th Oct 2003
Location: Deer Park, New York
Posted: 9th Jun 2007 17:03
Tada, thanks!

Thank you TGC for creating such amazing products!

Success does not come with meeting the minimum requirements.

Login to post a reply

Server time is: 2024-11-25 17:40:21
Your offset time is: 2024-11-25 17:40:21