Answer the question
In order to leave comments, you need to log in
How to use PresentationSource?
I am making an application and I need to get the scale of the interface so that the program correctly takes a screenshot of the entire screen. To do this, I found many ways, but they are all not working, as a result, there was 1 unverified:
double factor = System.Windows.PresentationSource.FromVisual(this).CompositionTarget.TransformToDevice.M11;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question