cairo-Image-Surfaces: Image Surfaces
Description
Rendering to memory buffersDetailed Description
Image surfaces provide the ability to render to memory buffers
    either allocated by cairo or by the calling code.  The supported
    image formats are those defined in CairoFormat.References
http://www.cairographics.org/manual/cairo-Image-Surfaces.html