[cairo] Paginating a png image.
richard.shann at virgin.net
Fri Nov 27 07:54:34 PST 2009
> Date: Fri, 27 Nov 2009 09:19:32 +0200
> From: Gerdus van Zyl
> Subject: Re: [cairo] Paginating a png image.
> To: cairo at cairographics.org
> <91882ea90911262319k2a9fb179u1f419cdaa900f5c2 at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
> I think you need to keep the rectangle the same:
> cairo_rectangle (cr, 0.0, 0.0, (double)width, (double)page_height);
> and move the offset to the source:
> cairo_set_source_surface (cr, the_surface, 0.0,
> (double)page_height*page_nr); //the y could also be negative can't
Thanks! with a negative offset in there it works.
More information about the cairo