E
E
EquaX2022-01-23 05:42:47
C++ / C#
EquaX, 2022-01-23 05:42:47

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;


but it says to me that there is no PresntationSource;

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question