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.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)
Syntax
'Declaration
Public Shared ReadOnly Property BitmapScalingMode As BitmapScalingMode
public static BitmapScalingMode BitmapScalingMode { get; }
public:
static property BitmapScalingMode BitmapScalingMode {
BitmapScalingMode get ();
}
static member BitmapScalingMode : BitmapScalingMode with get
static function get BitmapScalingMode () : BitmapScalingMode
Property Value
Type: BitmapScalingMode
The BitmapScalingMode algorithm to be used for resizing images in WPF.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.