Re: Proposing EvRenderContext
- From: Marco Pesenti Gritti <mpgritti gmail com>
- To: Jonathan Blandford <jrb redhat com>
- Cc: evince-list gnome org
- Subject: Re: Proposing EvRenderContext
- Date: Wed, 29 Jun 2005 20:06:08 +0200
> I'd like to change the way do rendering, and introduce a
> EvRenderingContext to encapsulate our rendering information. Currently,
> we have some code like:
>
> ev_document_set_orientation (doc, orientation);
> pixbuf = ev_document_render_pixbuf (doc, page, scale);
>
> Instead of this, I'd like to see us have code that looks like:
>
> EvRenderContext *rc = ev_render_context_new (doc, orientation, page, scale);
> pixbuf = ev_document_render_pixbuf (doc, rc);
> ...
> ev_render_context_free (rc);
It sounds good, just a question... How are we going to adapt
coordinates (of a find match, for example) for a rotated document? Are
we going to transform them in EvView like we do for scale already?
Marco
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]