locked
Win 8.1 DPI - WPF - How to find independent monitor/display's DPI RRS feed

  • Question

  • I have a Win 8.1 system installed on my system. I used to calculate DPI based on following in my WPF App (Win 7) in the following manner.

    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 DPIs 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


    • Edited by RakeshReddy Friday, September 6, 2013 6:06 PM
    Friday, September 6, 2013 6:06 PM