Re: Vector scaling
AD <[email protected]>
| Newsgroups | gmane.comp.lib.cairo |
|---|---|
| Message-ID | <CAGq7sysKO-Vm7OjVOowMZnQjNR5LLmEpqJ4_U03B_+fXdnseHQ@mail.gmail.com> |
Thanks Krzysztof, Recording surfaces don't seem to be available through pycairo though. Aren't there any workarounds? Regards, Eric 2013/11/5 Krzysztof Kosiński <[email protected]> > 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