Transitions

For a basic description of how to query a document for the specified presentation details, see Presentations Presentations. Given these details, the caller is still responsible for displaying (animating) the transition.

To help with this task, MuPDF provides a helper function that generate the required frame of the transition into the supplied target pixmap from supplied rendered pixmaps of the start/end of the transition:


\begin{lstlisting}
/*
fz_generate_transition: Generate a frame of a transition....
...pixmap *opix, fz_pixmap *npix, int time, fz_transition *trans);
\end{lstlisting}

This helper function is largely independent of the rest of MuPDF, and will be dropped from the library at link time if it is not used.

It is still the callers responsibility to drive this, to display the updated pixmaps, and to generate the time field as appropriate from the actual real clock values.