I have a Win 8.1 system installed on my system. I used to findDPI based on following calculations in my WPF App (Win 7):
Matrix m = PresentationSource.FromVisual(Application.Current.MainWindow).CompositionTarget.TransformToDevice;
double dx = m.M11;
double dy = m.M22;
Matrix m = PresentationSource.FromVisual(Application.Current.MainWindow).CompositionTarget.TransformToDevice;
double dx = m.M11;
double dy = m.M22;
With Win 8.1, I have the flexibility to have different DPI's set for different monitors. If I need to find out what are the DPI's of each monitor using WPF, how to achieve the same?
Rakesh