JudsonCaspian
March 21st, 2001, 04:24 PM
According to MSDN there are always 1440 twips per inch. Since the number of pixels in an inch changes when the screen resolution changes, a twip should NOT be equal to a constant number of pixels. However, when I change my screen resolution, Screen.TwipsPerPixelX is still 15. Why does Screen.TwipsPerPixelX always return 15?
The strange thing is that Me.Top is in Twips and dividing Me.Top by 15 actually returns the correct pixel co-ordinate. How is this possible?
Since
(1440 twips / 1 inch)*(1 pixel / 15 twips)
= 96 pixels per inch.
If I'm not missing an important piece of information, that would either mean that there are always 96 pixels per inch, which is clearly not true, or it would mean that MSDN is wrong.
MSDN couldn't be wrong, could it?
The strange thing is that Me.Top is in Twips and dividing Me.Top by 15 actually returns the correct pixel co-ordinate. How is this possible?
Since
(1440 twips / 1 inch)*(1 pixel / 15 twips)
= 96 pixels per inch.
If I'm not missing an important piece of information, that would either mean that there are always 96 pixels per inch, which is clearly not true, or it would mean that MSDN is wrong.
MSDN couldn't be wrong, could it?