[cairo] drawing on and reusing an off-screen image surface

Matt Hoosier matt.hoosier at gmail.com
Tue Dec 4 05:38:32 PST 2007


On Dec 3, 2007 4:05 PM, Carl Worth <cworth at cworth.org> wrote:
>
> So, if you're using X, then gdk_cairo_create will return a cairo_t*
> targeting an xlib surface, and cairo_surface_create_similar will also
> return an xlib surface. When you draw to this surface, the contents
> will be stored within the X server, (and might actually be stored
> within video memory on your graphics device). So drawing from this
> intermediate surface to the original surface, will generally perform
> much better than drawing from an image surface.

Okay, I retract my recommendation to use an intermediate GdkPixmap;
it's just an overly roundabout way to attempt the same benefit.


More information about the cairo mailing list