Now I'm developing the program which could draw ECG waveform, the speed of ECG waveform is 25 mm/second. So I needs to convert pixels to millimeters.
Now, I wants to get the screen size in millimeters using C#. Now I have 2 monitors, and I hope to know the screen sizes of all monitors, I know how to get the sizes in pixels, but I don't know how to get millimeters value.
I search the google,found that using WMI could get the screen size, I tried, but failed. Could anyone give me some suggestions?
Refer the following links,
http://www.dallinjones.com/2008/07/how-to-convert-from-pixels-to-millimeters/
Convert Pixels to Inches and vice versa in C#
I found some code in stackoverflow to get the size of screen in millimeters. Use WMI to enumerate screens, and get device ids. Use device IDs to get EDID from register table. Then read item 21, 22 of "edid" arrary to get width and height of screen, in millimeters.