For devices that require shadings as rasterised objects, we provide a function to paint a shading to a fz_pixmap:
This is currently used by the draw and SVG devices.