On Wed, 2006-05-10 at 17:52 -0500, Federico Mena Quintero wrote: > On Wed, 2006-05-10 at 18:26 -0400, John (J5) Palmieri wrote: > > One of the issues with cairo is that we would have to either run through > > the drawing commands on every expose event or save out to a bitmaps > > surface which would remove the ability to zoom. > > The canvas runs through the drawing commands on every expose event :) > If you use canvas groups to take advantage of recursive bounding boxes, > it can be quite efficient.
But is the canvas part of gtk+? > For efficient exposures... I don't know how Cairo stores things > internally, but it shouldn't be too hard to add bounding box info for > those replay-able commands. > > In any case, you only need to replay on the first expose event; you can > create a pixmap then that you use for further exposes. You only need to > replay to a new pixmap when you change the zoom factor --- isn't this > essentially what Evince does? Yes we can do this. It was my first thought. It is not off the table yet. -- John (J5) Palmieri <[EMAIL PROTECTED]> _______________________________________________ gtk-devel-list mailing list gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list