Re: Unsymmetrical rotation
Krzysztof Kosiński <[email protected]>
| Newsgroups | gmane.comp.lib.cairo |
|---|---|
| Message-ID | <CAFLw2WQ1-qbeVx8Sa3U0SeUfKzvz_C0=xz9n3-fS2oajJh5nbw@mail.gmail.com> |
2013/3/3 Blagoj Kupev <[email protected]>: > In this case for any angle the rotated image starts from the top left corner > and is symmetrical. But if I try to set value different than 0 in x_offset > the position of the image is offset differently according to the angle. So > if i set x_offset = 50 and angle = 20; then the image is moved not only in x > direction but in y as well. For same offset but different angle the image is > placed at different x and y offsets. Switch the order of the cairo_translate() and cairo_rotate() calls, so that cairo_rotate() is called first. Regards, Krzysztof -- cairo mailing list [email protected] http://lists.cairographics.org/mailman/listinfo/cairo