Thanks a lot vr for clarifications,
> for those who strive to work in mm
I think I will be no more in that number. it really seems too complicated to be sure of an exact measure in mm. It seems pixel are always accurate so I'll use pixels only.
As always I must confess I make a lot of confusion with this matter and discovered about EDID today from your post. It seems EDID data in windows is concealed in the registry under HKLM\SYSTEM\CurrentControlSet\\Enum\DISPLAY\"name of your monitor"\Device Parameters\EDID key.
I installed Parse::EDID and arranged the following:
use strict;
use warnings;
use Parse::EDID;
use Data::Dumper;
# I have two similar keys: PHLC0E5 and PHL088B among many others. Bein
+g the current monitor a Philips I guess it must be one of them.
# I grabbed the relevant part of output of the command:
# REG QUERY "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\DISPLAY\
+PHL088B\4&2afe7bec&0&UID50529024\Device Parameters"
my $registry =<<EOT;
00FFFFFFFFFFFF00410CE5C0FE050000051A010380301B782AE7E5A5564DA1250F5054
+BD4B00D1C09500950FB30081
C0818001010101023A801871382D40582C4500DD0C1100001E000000FF005A51303136
+3035303031353334000000FC0050484C2032323745360A2020
20000000FD00384C1E5311000A202020202020013D
EOT
my $raw_edid = join'',split /\n/, $registry;
my $edid = parse_edid( $raw_edid );
print Dumper $edid;
The output is very verbose and glancing it I dont find any physical measure resembling those of my monitor: I read in the wikipedia article you linked, measures in centimeters are stored in bytes 21-22, but under which names in the following output? Again: my monitor is 48cm x 27cm
If I understand you correctly I must figure which is the real current dpi value, modify the scaling accordingly and re-calculate the size in mm. Right?
While this matter is interesting and thanking you for hints and time you spent on it, I'm considering to remove entirely the mm calculation from my application, leaving pixel as only option.
L*
There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
|