If you appear to be getting the wrong value back the first thing I would check is that the DPI setting on your PC really does correspond, at least approximately, to the pixels-per-inch value for your display. It is not uncommon for the DPI to be set to 96 (the 'standard' value) even when the display is nowhere near that. |
|