konee Posted September 24, 2003 Posted September 24, 2003 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. Quote
*Gurus* divil Posted September 24, 2003 *Gurus* Posted September 24, 2003 As far as I know there isn't a way. You could probably retrieve a DPI value from a Graphics surface but since there's 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). Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.