Re: drawing a very long line on the screen and how much of the lifting I have to do

Tim Roberts <[email protected]> Fri, 28 May 2021 14:45:04 -0700
Newsgroups gmane.comp.python.wxpython
Organization Providenza & Boekelheide, Inc.
Message-ID <[email protected]>
Nathan smith wrote:
>
> Regarding the pixel v.s. CM rule, I just did a google on the matter 
> which told me a probably inaccurate figure, though it worked for rough 
> testing purposes.
>
> I ended up going with around 12.5 pixels to the half CM.

As long as you're just using it for relative placement, that's perfectly 
OK.  But if you're doing something where real-world measurements matter, 
it's not that easy.  12.5 pixels per 0.5cm comes out to 64 pixels per 
inch.  Most Windows displays run 96 ppi, many run 120, but these days 
the variation is quite large.

It's quite possible your app doesn't care -- most don't  -- but it's 
something to tuck away for later.

-- 
Tim Roberts, [email protected]
Providenza & Boekelheide, Inc.


-- 
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/613563f7-bf82-23df-31b6-16582a0d5ec9%40probo.com.
smime.p7s (application/pkcs7-signature, 3.3 KB) - not displayed