26.2 Bounding

Once created, we can ask for the bounds of a given shade under a given transformation. This can sometimes be infinite.

/* 
   fz_bound_shade: Bound a given shading. 
 
   shade: The shade to bound. 
 
   ctm: The transform to apply to the shade before bounding. 
 
   r: Pointer to storage to put the bounds in. 
 
   Returns r, updated to contain the bounds for the shading. 
*/ 
fz_rect *fz_bound_shade(fz_context *ctx, fz_shade *shade, const fz_matrix *ctm, fz_rect *r);