Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Win 8.1 / Win Blue DPI - WPF - How to find independent monitor/display's DPI

$
0
0
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; 

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



Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>