use-livecode Digest, Vol 98, Issue 4
Michael Kristensen
michael-kristensen at dsa-net.dk
Fri Nov 4 06:11:15 EDT 2011
Hi Mark
Very nice to see your additions.
One comment on the DPI
If you want a ruler that match your printer you should use 72.
Also if you fx want to calculate a perimeter or area of a square you should use 72.
At least on a Mac
To have the ruler appear "lifelike" I use 72/2.54 * 1.52 on an iMac 27
I have experimentet in a drawing app and found 152% to be lifelike on the screen
So in my case at 152% I see exactly what comes out of the printer.
Michael
Den 03/11/2011 kl. 18.00 skrev use-livecode-request at lists.runrev.com:
>
> Hi Michael,
>
> I added to your very cool script a slight bit to make the cm ruler true on any monitor. Users will have to adjust the three variables at the top to represent their monitors accurately.
>
> on mouseUp
> put 1920 into tMonitorWidth
> put 1200 into tMonitorHeight
> put 24 into tMonitorDiag
>
> put sqrt((tMonitorWidth * tMonitorWidth) + (tMonitorHeight * tMonitorHeight)) into tDiagRes
> put round(tDiagRes/tMonitorDiag,3) into tDPI
> put tDPI /2.54 into Q
More information about the use-livecode
mailing list