Harlequin RIP SDK

Example of a PostScript device type to implement photoink splitting. More...

Macros

#define MAX_SPLIT_COMPONENTS   (3)
 

Typedefs

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. More...
 

Functions

HqBool register_photoink_splitter (photoink_splitter_fn *splitter)
 Register the photoink splitter function. More...
 

Detailed Description

Example of a PostScript device type to implement photoink splitting.

Macro Definition Documentation

◆ MAX_SPLIT_COMPONENTS

#define MAX_SPLIT_COMPONENTS   (3)

The biggest number of split components, e.g. for a device that splits K into dark, light and extra light colorants, the value should be at least 3. It doesn't matter if this number is bigger than necessary.

Typedef Documentation

◆ photoink_splitter_fn

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]devnameThe photoink device name. It should be known to the implementation.
[in]componentThe CMYK component. The strings representing the components are implementation defined.
[in]tintThe tint value for the original CMYK component before splitting.
[out]nvaluesThe number of split values for component.
[out]split_valuesAn array of nvalues values returned by the splitting algorithm for the tint value.
Return values
TRUEfor success;
FALSEotherwise.

Function Documentation

◆ register_photoink_splitter()

HqBool register_photoink_splitter ( photoink_splitter_fn splitter)

Register the photoink splitter function.

Parameters
[in]splitterThe splitter function to use for the photoink device.
Return values
TRUEfor success;
FALSEotherwise.