DpiHelper Properties
Assembly: Microsoft.VisualStudio.Utilities (in Microsoft.VisualStudio.Utilities.dll)
| Name | Description | |
|---|---|---|
![]() | BitmapScalingMode | The BitmapScalingMode. |
![]() ![]() | Default | eturns a DpiHelper class suitable for scaling images designed for 100% DPI zoom levels (96dpi). |
![]() | DeviceDpiX | Gets the screen's (device) current horizontal DPI. |
![]() | DeviceDpiY | The screen's (device) current vertical DPI. |
![]() | DeviceToLogicalUnitsScalingFactorX | Converts to the horizontal logical units scaling factor. |
![]() | DeviceToLogicalUnitsScalingFactorY | Converts to the vertical logical units scaling factor. |
![]() | DpiScalePercentX | |
![]() | DpiScalePercentY | |
![]() | 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. |
![]() | IsScalingRequired | Determines whether scaling is required when converting between logical-device units |
![]() | LogicalDpiX | Gets the helper's logical horizontal DPI. |
![]() | LogicalDpiY | Gets the helper's vertical horizontal DPI. |
![]() | LogicalToDeviceUnitsScalingFactorX | |
![]() | LogicalToDeviceUnitsScalingFactorY | |
![]() | 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 | |
![]() | TransformToDevice | |
![]() | UsePreScaledImages | Determines whether images should be pre-scaled at zoom levels higher than 200%, using NearestNeighbor up to the largest multiple of 100% |

