Transformation

Once a path has been constructed, a common operation is to apply a transformation to it. This is equivalent to transforming every point in the existing path. A path can be transformed using fz_transform_path.


\begin{lstlisting}
/*
fz_transform_path: Transform a path by a given
matrix.
\...
...th(fz_context *ctx, fz_path *path, const fz_matrix *transform);
\end{lstlisting}

This counts as modifying a path of course, so ensure that you are the only reference holder, or fz_clone_path it first.