http://onionworks.net/2006/imageservice

addPaletteColor (workspace : nodeset, index : number, color : nodeset) : number

With this method it is possible to add a colour at a certain position in the colour table of a picture.

The syntax of the method can be seen in the following example. The used variable “workspace” contains a workspace.

<xsl:variable name="palette" select="is:addPaletteColor($workspace, 1, is:createColor(255,255,255))" />