void SetMapToColor(long mapindex,long hexcolor)
Set mapping for mapindex of specfic shade hexcolor,
such as 0x00ff0000 (for red).
long IsIndex(long mapindex)
Returns TRUE if the mapindex was specified using a colorindex.
long GetMapColor(long mapindex)
Returns the color specified by specific shade.
Not valid if specified by colorindex.
long GetMapIndex(long mapindex)
Returns the color specified by index.
Not valid if specified by specific shade.
The remap is effective up to the largest mapindex specified.
Currently, any unspecified mapindex's up that point will be undefined.
Currently, the index 255 refers to transparent.