<br><br><div class="gmail_quote">2008/6/5 Holger Berndt <<a href="mailto:berndth@gmx.de">berndth@gmx.de</a>>:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Do, 05.06.2008 15:27, Simon Budig wrote:<br>
<br>
>No, You can change the transformation between the path-creating commands<br>
>and the cairo_stroke().<br>
<br>
</div>Thanks a lot, Dirk and Simon. Having different scalings during path<br>
creation and stroking of course does the trick. Awesome!</blockquote><div><br>Of course, a far simpler solution is to do the coordinate transformations completely outside of cairo contexts. When I used cairo for plotting in the past, what I did was create my own coordinate transformation matrix, to which you can apply scaling and translation as usual, and simply apply this transformation matrix to every coordinate before passing it down to cairo proper. It may be a bit more typing, but it is also far more understandable in the end.<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<font color="#888888"><br>
Holger<br>
</font><div><div></div><div class="Wj3C7c">_______________________________________________<br>
cairo mailing list<br>
<a href="mailto:cairo@cairographics.org">cairo@cairographics.org</a><br>
<a href="http://lists.cairographics.org/mailman/listinfo/cairo" target="_blank">http://lists.cairographics.org/mailman/listinfo/cairo</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Gustavo J. A. M. Carneiro<br>INESC Porto, Telecommunications and Multimedia Unit<br>"The universe is always one step beyond logic." -- Frank Herbert