Freigeben über


Microsoft.VisualStudio.Utilities.Dpi Namespace

Classes

DpiHelper

Helper class for scaling coordinates and images according to current DPI scaling set in Windows for the screen.

This class can be used in assemblies that can't take a dependency on Microsoft.VisualStudio.Shell.14.0 (or later) This class doesn't use any VS-specific interfaces or services.

The code running in Visual Studio or other appids should not be using this class. Instead, it should use the static DpiHelper class from Microsoft.VisualStudio.PlatformUI namespace from the VS Framework assembliy.

Usually the code needing Dpi scaling functionality provided by this class will want to access it by calling the members of the static DpiHelper.Default instance.