[cairo] Vector scaling
Krzysztof Kosiński
tweenk.pl at gmail.com
Tue Nov 5 16:58:32 CET 2013
2013/11/5 AD <mg7pwz at gmail.com>:
> Hello,
> Sorry if this feels dumb or if it's not the right place to ask. I looked
> everywhere for an answer.
> I understand that cairo is a vector graphics library.
> So is there a way to upscale a surface with vector drawings on it (shapes
> and text), without upsampling?
> I'm using pycairo, to create some surfaces with text and shapes on it, and
> I'd like to be able to serve PNGs of several sizes. Do I have to redraw
> everything each time? Or is there a way to upscale a cairo surface without
> rasterizing it?
To store operations for later rasterizing, use a recording surface.
http://cairographics.org/manual/cairo-Recording-Surfaces.html
Regards, Krzysztof
More information about the cairo
mailing list