...@leafe.com
Sent: Wednesday, September 04, 2013 8:49 PM
Subject: color codes
I need to create a table with color codes.
I wonder how are the numbers obtained. I do not want to use the RGB
function and I saw somewhere an algorithm or a function that gives
those numbers.
How?
Rafael Copquin
Hello
- Original Message -
From: Rafael Copquin rcopq...@fibertel.com.ar
To: profoxt...@leafe.com
Sent: Wednesday, September 04, 2013 8:49 PM
Subject: color codes
I need to create a table with color codes.
I wonder how are the numbers obtained. I do not want to use the RGB
function
I need to create a table with color codes.
From the file FOXPRO.H I got this:
*-- Properties
*-- Colors
#DEFINE COLOR_WHITE 16777215
#DEFINE COLOR_BLACK 0
#DEFINE COLOR_GRAY 12632256
#DEFINE COLOR_DARK_GRAY 8421504
lnColor = getcolor()
?lnColor
On 9/4/2013 11:49 AM, Rafael Copquin wrote:
I need to create a table with color codes.
From the file FOXPRO.H I got this:
*-- Properties
*-- Colors
#DEFINE COLOR_WHITE 16777215
#DEFINE COLOR_BLACK 0
#DEFINE
I've got it, it's the getcolor() functions
Thanks
Rafael Copquin
El 04/09/2013 15:49, Rafael Copquin escribió:
I need to create a table with color codes.
From the file FOXPRO.H I got this:
*-- Properties
*-- Colors
#DEFINE COLOR_WHITE 16777215
#DEFINE COLOR_BLACK
may be this can help you :
|m.nRed = *Bitand*(0xFF, m.nRGB)
m.nGreen = *Bitand*(0xFF, *Bitrshift*(m.nRGB,8))
m.nBlue = *Bitand*(0xFF, *Bitrshift*(m.nRGB,16))
|The Foxil
--- StripMime Report -- processed MIME parts ---
multipart/alternative
text/plain (text body -- kept)
text/html
---
I just answered my own question, please see my next post
Merci beaucoup
Rafael
El 04/09/2013 16:03, Jean MAURICE escribió:
may be this can help you :
|m.nRed = *Bitand*(0xFF, m.nRGB)
m.nGreen = *Bitand*(0xFF, *Bitrshift*(m.nRGB,8))
m.nBlue = *Bitand*(0xFF, *Bitrshift*(m.nRGB,16))
|The Foxil
A psychic lol
Al
-Original Message-
From: ProfoxTech [mailto:profoxtech-boun...@leafe.com] On Behalf Of Rafael
Copquin
Sent: 04 September 2013 21:06
To: profoxt...@leafe.com
Subject: Re: color codes
I just answered my own question, please see my next post
Merci beaucoup
Rafael
8 matches
Mail list logo