<div dir="ltr"><div><div><div><div>Thanks Krzysztof,<br></div>Recording surfaces don't seem to be available through pycairo though.<br></div>Aren't there any workarounds?<br><br></div>Regards,<br><br></div>Eric<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/11/5 Krzysztof Kosiński <span dir="ltr"><<a href="mailto:tweenk.pl@gmail.com" target="_blank">tweenk.pl@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
2013/11/5 AD <<a href="mailto:mg7pwz@gmail.com">mg7pwz@gmail.com</a>>:<br>
<div><div class="h5">> Hello,<br>
> Sorry if this feels dumb or if it's not the right place to ask. I looked<br>
> everywhere for an answer.<br>
> I understand that cairo is a vector graphics library.<br>
> So is there a way to upscale a surface with vector drawings on it (shapes<br>
> and text), without upsampling?<br>
> I'm using pycairo, to create some surfaces with text and shapes on it, and<br>
> I'd like to be able to serve PNGs of several sizes. Do I have to redraw<br>
> everything each time? Or is there a way to upscale a cairo surface without<br>
> rasterizing it?<br>
<br>
</div></div>To store operations for later rasterizing, use a recording surface.<br>
<a href="http://cairographics.org/manual/cairo-Recording-Surfaces.html" target="_blank">http://cairographics.org/manual/cairo-Recording-Surfaces.html</a><br>
<br>
Regards, Krzysztof<br>
</blockquote></div><br></div>