KCMS Application Developer's Guide

icNamedColor2

/*
  * icNamedColor2 takes the place of icNamedColor, approved at the
  * SIGGRAPH 95, ICC meeting.
  */
 typedef struct {
     icUInt32Number              vendorFlag;         /* Bottom 16 bits for IC use */
     icUInt32Number              count;              /* Count of named colors */
     icUInt32Number              nDeviceCoords;      /* Number of device coordinates */
     icInt8Number                prefix[32];         /* Prefix for each color name */
     icInt8Number                suffix[32];         /* Suffix for each color name */
     icInt8Number                data[icAny];        /* Named color data follows */
 /*
  *  Data that follows is of this form
  *
  * icInt8Number                 root1[32];              * Root name for first color
  * icUInt16Number               pcsCoords1[icAny];      * PCS coordinates of first color
  * icUInt16Number               deviceCoords1[icAny];   * Device coordinates of first color
  * icInt8Number                 root2[32];              * Root name for second color
  * icUInt16Number               pcsCoords2[icAny];      * PCS coordinates of first color
  * icUInt16Number               deviceCoords2[icAny];   * Device coordinates of first color
  *                                :
  *                                :
  * Repeat for name and PCS and device color coordinates up to (count-1)
  *
  * NOTES: 
  * PCS and device space can be determined from the header.
  *
  * PCS coordinates are icUInt16 numbers and are described in the ICC
  * specification. Only 16 bit CIELAB and CIEXYZ are allowed. The number of
  * coordinates is consistent with the headers PCS.
  *
  * Device coordinates are icUInt16 numbers where 0x0000 represents
  * the minimum value and 0xFFFF represents the maximum value.
  * If the nDeviceCoords value is 0, this field is not given.
  */
 } icNamedColor2;