<br><br><div class="gmail_quote">On Fri, Nov 6, 2009 at 5:09 PM, Dmitry Kazakov <span dir="ltr">&lt;<a href="mailto:dimula73@gmail.com">dimula73@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Heh.. =)<div class="im"><br><br> &gt; (and why do I
have to divide by 72 ?)<br><br></div>Because resolution of the image is stored in &quot;points per pixel&quot; format. Where a &quot;point&quot; (pt) is a theoretical unit equal to 1/72 of the inch sharp.<br><br>Btw, I&#39;d suggest you to use predefined macroses from ./libs/kobase/KoUnit.h instead of all this multiplications and divisions in place.<br>
</blockquote></div><br>e.g. POINT_TO_CM(x_resolution)/100.0 instead of (x_resolution/100.0 / 72 * 2.54)<br clear="all"><br>-- <br>Dmitry Kazakov<br>