Review for 191719

Dmitry Kazakov dimula73 at gmail.com
Fri Nov 6 15:24:49 CET 2009


On Fri, Nov 6, 2009 at 5:09 PM, Dmitry Kazakov <dimula73 at gmail.com> wrote:

> Heh.. =)
>
>
> > (and why do I have to divide by 72 ?)
>
> Because resolution of the image is stored in "points per pixel" format.
> Where a "point" (pt) is a theoretical unit equal to 1/72 of the inch sharp.
>
> Btw, I'd suggest you to use predefined macroses from ./libs/kobase/KoUnit.h
> instead of all this multiplications and divisions in place.
>

e.g. POINT_TO_CM(x_resolution)/100.0 instead of (x_resolution/100.0 / 72 *
2.54)

-- 
Dmitry Kazakov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kimageshop/attachments/20091106/08bfb208/attachment.htm 


More information about the kimageshop mailing list