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

/* 
   fz_transform_path: Transform a path by a given 
   matrix. 
 
   path: The path to modify (must not be a packed path). 
 
   transform: The transform to apply. 
 
   Throws exceptions if the path is packed, or on failure 
   to allocate. 
*/ 
void fz_transform_path(fz_context *ctx, fz_path *path, const fz_matrix *transform);

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