Re: Unsymmetrical rotation
Bill Spitzak <[email protected]>
| Newsgroups | gmane.comp.lib.cairo |
|---|---|
| Message-ID | <[email protected]> |
On 03/03/2013 06:33 AM, Blagoj Kupev wrote:
> cairo_translate (cr, x_origin, y_origin);
> cairo_rotate (cr, (2*3.14*angle/360));
>
> cairo_set_source_surface(cr, surf1, -x_origin+x_offset, -y_origin);
> cairo_paint(cr);
I think this will work:
cairo_translate (cr, x_origin, y_origin);
cairo_rotate (cr, (2*3.14*angle/360));
cairo_translate (cr, x_offset, 0);
cairo_set_source_surface(cr, surf1, -x_origin, -y_origin);
--
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo