Utility class mapping RGB colour specifications to the colour indices used in the Pocket PC. The original converter was written for use with Pocket Word it was later put into the utils so Pocket excel could use this code also. For this reason the defualt values are those used by Pocket Word but a colour table can be passed in through the constructor to map the 16 values to a colour table. These colour indices are based on the Windows VGA 16 colour palette, which later was used as the basis for the named colours in the HTML 3.2 specification. In Pocket Word's case, the match to the VGA 16 palette is not exact as it swaps Grey and Silver, with Silver being the darker colour (i.e. having the lower RGB value).
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.