DpiHelper Properties
Assembly: Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | BitmapScalingMode | Gets the BitmapScalingMode algorithm to be used for resizing images in WPF. This allows the shell to control the algorithm depending on the dpi zoom scale, and allows the user to override it via registry settings like General\BitmapScalingXXX = (BitmapScalingMode)value, with XXX the zoom factor in percents, e.g. BitmapScaling150, etc. |
![]() ![]() | DeviceDpiX | Microsoft internal use only. |
![]() ![]() | DeviceDpiY | Microsoft internal use only. |
![]() ![]() | DeviceToLogicalUnitsScalingFactorX | Microsoft internal use only. |
![]() ![]() | DeviceToLogicalUnitsScalingFactorY | Microsoft internal use only. |
![]() ![]() | DpiScalePercentX | Gets the DPI scale percent for the horizontal scale. |
![]() ![]() | DpiScalePercentY | Gets the DPI scale percent for the vertical scale. |
![]() ![]() | ImageScalingMode | Gets the ImageScalingMode algorithm to be used for resizing images in WinForms/Win32. This allows the shell to control the algorithm depending on the dpi zoom scale, and allows the user to override it via registry settings like General\ImageScalingXXX = (ImageScalingMode)value, with XXX the zoom factor in percents, e.g. ImageScaling150, etc. |
![]() ![]() | Instance | Gets an instance of DpiHelper. |
![]() ![]() | IsScalingRequired | Determines whether scaling is required when converting between logical-device units. |
![]() ![]() | LogicalDpiX | Gets the logical DPI for the horizontal coordinates. |
![]() ![]() | LogicalDpiY | Gets the logical DPI for the vertical coordinates. |
![]() ![]() | LogicalToDeviceUnitsScalingFactorX | Microsoft internal use only. |
![]() ![]() | LogicalToDeviceUnitsScalingFactorY | Microsoft internal use only. |
![]() ![]() | PreScaledImageLayoutTransformScaleX | Gets the horizontal scale value that should be used with a LayoutTransform/ScaleTransform to scale back an image pre-scaled in HighDPI with DpiPrescaleImageSourceConverter in order to obtain crisp results. |
![]() ![]() | PreScaledImageLayoutTransformScaleY | Gets the vertical scale value that should be used with a LayoutTransform/ScaleTransform to scale back an image pre-scaled in HighDPI with DpiPrescaleImageSourceConverter in order to obtain crisp results. |
![]() ![]() | TransformFromDevice | Microsoft internal use only. |
![]() ![]() | TransformToDevice | Microsoft internal use only. |
![]() ![]() | UsePreScaledImages | Determines whether images should be pre-scaled at zoom levels higher than 200%, using NearestNeighbor up to the largest multiple of 100%. |

