Method Cairo.RecordingSurface()->create()


Method create

Cairo.RecordingSurface Cairo.RecordingSurface(int content, Rectangle|void extents)

Description

Creates a recording-surface which can be used to record all drawing operations at the highest level (that is, the level of Context->paint, Context->mask, Context->stroke, Context->fill and Context->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.

Parameter content

the content of the recording surface

Parameter extents

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