Example of a PostScript device type to implement photoink splitting.
typedef HqBool() photoink_splitter_fn(uint8 *devname, uint8 *component, float tint, uint32 *nvalues, float *split_values) |
A function type to implement the photoink splitting of one tint value per call.
This example is very simple for clarity. Its purpose is to demonstrate the mechanics of photoink splitting. The devname, component, and tint params are expected to originate in the CustomConversions procedures, which must be written in coordination with the implementation of this function. The filename used in the device operators will be passed through as the component param of this function.
- Parameters
-
[in] | devname | The photoink device name. It should be known to the implementation. |
[in] | component | The CMYK component. The strings representing the components are implementation defined. |
[in] | tint | The tint value for the original CMYK component before splitting. |
[out] | nvalues | The number of split values for component. |
[out] | split_values | An array of nvalues values returned by the splitting algorithm for the tint value. |
- Return values
-
TRUE | for success; |
FALSE | otherwise. |