Re: Problem with preview and the blocking print dialog
- From: Federico Mena Quintero <federico ximian com>
- To: "John (J5) Palmieri" <johnp redhat com>
- Cc: gtk-devel-list gnome org, alexl redhat com
- Subject: Re: Problem with preview and the blocking print dialog
- Date: Wed, 10 May 2006 17:52:24 -0500
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]