RecordingSurface.create

Creates a recording-surface which can be used to record all drawing operations at the highest level (that is, the level of paint, mask, stroke, fill and show_text_glyphs). The recording surface can then be "replayed" against any target surface by using it as a source to drawing operations. The recording phase of the recording surface is careful to snapshot all necessary objects (paths, patterns, etc.), in order to achieve accurate replay. Since 1.10

class RecordingSurface
static
create

Parameters

content cairo_content_t

the content of the recording surface

extents cairo_rectangle_t*

the extents to record in pixels, can be NULL to record unbounded operations.

Return Value

a pointer to the newly created surface. The caller owns the surface and should call Surface.destroy when done with it.