Test Device

The Test device, as its name suggests, tests a given set of page contents for which features are used. Currently this is restricted to testing for whether the graphical objects used are greyscale or colour. Testing for additional features may be added in future.


\begin{lstlisting}
/*
fz_new_test_device: Create a device to test for features....
...s_color, float threshold, int options, fz_device *passthrough);
\end{lstlisting}

The expected purpose of the colour detecting functionality is to allow applications (e.g. printers) to easily detect if a given page requires the use of colour inks, or whether a greyscale rendering will suffice.

This device can either be used by itself, or in the form of a pass-through device.



Subsections