Re: Problem with preview and the blocking print dialog



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.

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?

  Federico




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]