Re: Vector scaling

Krzysztof Kosiński <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <CAFLw2WS-E+28iPkY6oBYdVj9dZ5YjfB1WVGVtTp0_WNqEX=P+w@mail.gmail.com>
2013/11/5 AD <[email protected]>:
> 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
-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.