Debian Codegraph @

doc/defuns-cairo-recording.xml.texi

raw
1
2 @c %start of fragment
3
4 @deffn Function cairo-recording-surface-create (@var{content}@tie{}@code{<cairo-content-t>}) (@var{extents}@tie{}@code{<cairo-rectangle-t>}) @result{}@tie{} (@var{ret}@tie{}@code{<cairo-surface-t >})
5 Creates a recording-surface which can be used to record all drawing
6 operations at the highest level (that is, the level of paint, mask,
7 stroke, fill and show_text_glyphs). The recording surface can then be
8 "replayed" against any target surface by using it as a source to drawing
9 operations.
10
11 The recording phase of the recording surface is careful to snapshot all
12 necessary objects (paths, patterns, etc.), in order to achieve accurate
13 replay.
14
15 @table @var
16 @item content
17 the content of the recording surface
18
19 @item extents
20 the extents to record in pixels, can be @samp{@code{#f}} to record
21 unbounded operations.
22
23 @item ret
24 a pointer to the newly created surface. The caller owns the surface and
25 should call @code{cairo-surface-destroy} when done with it.
26
27 @end table
28
29 Since 1.10
30
31 @end deffn
32
33 @deffn Function cairo-recording-surface-ink-extents (@var{surface}@tie{}@code{<cairo-surface-t>}) @result{}@tie{} (@var{x0}@tie{}@code{<double>}) (@var{y0}@tie{}@code{<double>}) (@var{width}@tie{}@code{<double>}) (@var{height}@tie{}@code{<double>})
34 Measures the extents of the operations stored within the
35 recording-surface. This is useful to compute the required size of an
36 image surface (or equivalent) into which to replay the full sequence of
37 drawing operations.
38
39 @table @var
40 @item surface
41 a @code{<cairo-recording-surface-t>}
42
43 @item x0
44 the x-coordinate of the top-left of the ink bounding box
45
46 @item y0
47 the y-coordinate of the top-left of the ink bounding box
48
49 @item width
50 the width of the ink bounding box
51
52 @item height
53 the height of the ink bounding box
54
55 @end table
56
57 Since 1.10
58
59 @end deffn
60
61
62 @c %end of fragment