Can the 8 digit hexadecimal number stored in a color field be converted to a 6 digit hexadecimal number that can be used in html?
Thanks
David
Can the 8 digit hexadecimal number stored in a color field be converted to a 6 digit hexadecimal number that can be used in html?
Thanks
David
Subject: Converting Color Field values to 6 digit Hex.
I may not be entirely correct, but this is what I have found in my experimenting.
The 8 digit hex code (stored as a text value in a color field) seems to consist of “00” followed by the 6 hex digit code that you could use in HTML.
For example, the shade of blue used in my company logo is R=131, G=169, B=190. I know that this translates to Hex 83A9BE. Notes stores this color value as “0083A9BE”. I have no idea what the leading zeroes are for.
As an experiment, I used an agent to set the value to “1183A9BE” (i.e. I replaced the leading zeroes with ones. This seemed to have no effect on the color that was displayed.
So, I would guess that you just have to strip off the leading 2 zeroes and you will have what you need.
Does anyone know differently ?
Subject: Seems to be working, thanks you very much.
nm