[cairo] understanding RecordingSurfaces

Andreas Lobinger lobingera at gmail.com
Wed Sep 4 10:57:21 PDT 2013


Hello colleagues,

i'm trying to use a RecordingSurface for some intermediate rendering, so i
draw a part of the drawing onto a surface and then paint it with
set_source_surface and paint_with_alpha onto an ImageSurface. This
intermediate is scaled before painted. So i get the pixel interpolation.

Now i moved the intermediate to a RecordingSurface and have two problems.

* If i do not set the size, so unbounded, i immediately get out-of-memory
error.
* Even if i set the size, in large scale factors, i see some pixels in
painting.

The documentation is not clear to me: Is the RecordingSurface, when used as
source, first rendered to a bitmap and then painted?

How would i achieve a scalable recorded vector drawing?

Wishing a happy day,
        Andreas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20130904/ff282b12/attachment.html>


More information about the cairo mailing list