find pixels per millimeter

konee

New member
Joined
Sep 24, 2003
Messages
1
i need to find pixels per millimeter for the screen.
I used to do this using GetDeviceCaps and geting VERTSIZE / HORZSIZE in VC++ 6.0. This gave me screen resolution in millimeters. I need to know the funciton if any in VB.net to do the same work OR any other way to get screen resolution in millimeter.
 
As far as I know there isnt a way. You could probably retrieve a DPI value from a Graphics surface but since theres no way of Windows actually knowing the physical size of your monitor (most of the time) it would only be approximate, and would probably just be 72 (iirc).
 
Back
Top