[cairo] Need help using recording surface

Allen, David david.allen at uky.edu
Tue Apr 28 20:59:03 UTC 2020

I am trying to learn to use cairo_recording_surface_create with the idea of rendering a surface once and then copying it multiple outputs, pdf, png, etc. Attached is my failed attempt. Can somewone point out what I am doing wrong?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cairographics.org/archives/cairo/attachments/20200428/dd59ab52/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: copy-surface.cpp
Type: text/x-c++src
Size: 1517 bytes
Desc: copy-surface.cpp
URL: <https://lists.cairographics.org/archives/cairo/attachments/20200428/dd59ab52/attachment.cpp>

More information about the cairo mailing list