[cairo] Should Cairo support non-bitmap memory surfaces?
alex.shulgin at gmail.com
Sat May 22 02:06:00 PDT 2010
On Sat, May 22, 2010 at 08:54, Adrian Lopez <adrianlopezroche at gmail.com> wrote:
> Drawing a filled shape with a solid border and transparency applied to the
> whole currently requires the creation of an intermediate surface (so the
> fill doesn't show through the border). Likewise, compositing a group of
> objects separately from other objects already on a surface requires the
> creation of an intermediate surface containing only the objects to be
> composited. Unless I'm mistaken about the way Cairo works, such intermediate
> surfaces assume the form of a bitmap with a given resolution, adding to the
> memory footprint during rendering and making it impossible to export these
> images as 100% resolution-independent SVGs.
> If this is correct, I hereby propose the creation of a high-level surface
> type containing only drawing commands.
I'm not sure I've fully understood what are you talking about in the
first part, but what you proposing seems to be already in cairo-1.9
snapshots, look for cairo-script surfaces.
More information about the cairo