DpiHelper.BitmapScalingMode Property

 

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.

Namespace:   Microsoft.VisualStudio.PlatformUI
Assembly:  Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)

public static BitmapScalingMode BitmapScalingMode { get; }

Property Value

Type: System.Windows.Media.BitmapScalingMode

The BitmapScalingMode algorithm to be used for resizing images in WPF.

Return to top
Show: