26.3 Painting

For devices that require shadings as rasterised objects, we provide a function to paint a shading to a fz_pixmap:

/* 
   fz_paint_shade: Render a shade to a given pixmap. 
 
   shade: The shade to paint. 
 
   ctm: The transform to apply. 
 
   dest: The pixmap to render into. 
 
   bbox: Pointer to a bounding box to limit the rendering 
   of the shade. 
*/ 
void fz_paint_shade(fz_context *ctx, fz_shade *shade, const fz_matrix *ctm, fz_pixmap *dest, const fz_irect *bbox);

This is currently used by the draw and SVG devices.