Resize or extend a cairo surface

Benjamin Warren <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <CALm=w3-2hYNkRXGiR6i=Czf1HwMNfoExBd5rr25p0iVuLEC8BQ@mail.gmail.com>
The situation is that my python script is rendering svg images to a
cairo.Context, which is attached to a cairo.ImageSurface with set
dimensions. When the script 'runs out of space' to draw the svg images
I want it to effectively resize/extend the surface dimensions to make
space for more svg images.

(I cannot preallocate the space because I don't know the number or
size of the images in advance.)

From what I have read I understand that you cannot actually resize a
cairo surface, the solution seems to be to copy the old surface to a
new larger surface, is this correct?

What is the best way to go about this?


Thanks

Benjamin
--
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.