Re: copying cairo surfaces to pdf/svg surface
Maarten Bosmans <[email protected]>
| Newsgroups | gmane.comp.lib.cairo |
|---|---|
| Message-ID | <CA+CvcKTFysmNr80ftUNgQXN5Ki+hYYg=aq4N2AbekkTpu6y25g@mail.gmail.com> |
Please keep conversation on-list (use reply-all) 2011/11/30 Zoltán Vörös <[email protected]>: > Greetings Maarten, > > Many thanks for the reply! The drawing is mine, and in fact, it is not so > much hassle to re-draw everything onto the pdf surface. I was simply hoping, > perhaps, that I could get away with a one-liner here:) Well, the usual thing to do is to abstract all your own drawing into functions which accept a context (and which can call other functions which accept a context). So when you've done that, it is indeed a one liner to call your main drawing function not only for the Gtk context, but also for the pdf surface context. Maarten -- cairo mailing list [email protected] http://lists.cairographics.org/mailman/listinfo/cairo