PaletteReadMe.txt

This file documents the file format for a user-defined color palette that can be accessed 
directly through the Style Editor dialog windows in TNTmips Display.

A palette file has the *.xml file extension and follows XML markup conventions.
The sample palette file shown below defines six colors:


<?xml version="1.0"?>
<palette name="Sample Palette" layout="3x2">

	<color name="Cyan" rgb8="0,255,255" cmykpct="100,0,0,0" inknum="48253"/>
	<color name="Yellow" rgb8="255,255,0" cmykpct="0,0,100,0" inknum="57377"/>
	<color name="Red/Brown" rgb8="165,0,0" cmykpct="35,100,100,0" inknum="61121"/>
	<color name="Purple" rgb8="128,0,128" cmykpct="0,50,0,50" inknum="84327"/>
	<color name="Black" rgb8="0,0,0" cmykpct="0,0,0,100" inknum="58600"/>
	<color name="White" rgb8="255,255,255" cmykpct="0,0,0,0"/>

</palette>


The first line of the file must begin with the XML version tag.

The root element in a palette file is the palette element. The start tag for the palette
element has two attributes:

	name="Sample Palette"	- palette name to be shown in the palette list 
	layout="3x2"		- layout of the rectangular block of sample color tiles; 
				  width (in number of tiles) x height (in number of tiles)
				  
Each color in the palette is defined by a separate color element. At least one of the 
predefined color tag attributes listed below must be used to define the color in a specific 
color system (examples are shown for black and white):
	
					name="Black"		name="White"
	rgb8:	8-bit (0-255) rgb 	rgb8="0,0,0"		rgb8="255,255,255"
	rgb16:	16-bit (0-65535) rgb	rgb16="0,0,0"		rgb16="65535,65535,65535"
	rgbpct:	percent (0-100) rgb	rgbpct="0,0,0"		rgbpct="100,100,100"
	rgbx:	hexidecimal rgb 	rgbx="000000"		rgbx="FFFFFF"
	cmy8:	8-bit (0-255) cmy 	cmy8="255,255,255"	cmy8="0,0,0"
	cmypct:	percent (0-100) cmy	cmypct="100,100,100"	cmypct="0,0,0"
	cmyk8:	8-bit (0-255) cmyk	cmyk8="0,0,0,255"	cmyk8="0,0,0,0"
	cmykpct:percent (0-100) cmyk	cmykpct="0,0,0,100"	cmykpct="0,0,0,0"

The color tag can include definitions in more than one color system, as in the above sample 
file. The color tag also has the following optional predefined attributes:

	name:		Color name
	transpct:	Transparency percent (0-100)

Other color tag attribute values may be defined by user (such as the inknum attribute in the 
sample file) and referenced via script if desired.

To make user-defined palettes available to all installed versions of TNTmips, they should be
placed in the following location:

Windows:	/Program Files/MicroImages/shared/palettes/
Unix:		/usr/local/lib/MicroImages/shared/palettes/		
