Condividi tramite


DpiHelper.ImageScalingMode Property

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.

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

Syntax

'Declaration
Public Shared ReadOnly Property ImageScalingMode As ImageScalingMode
public static ImageScalingMode ImageScalingMode { get; }
public:
static property ImageScalingMode ImageScalingMode {
    ImageScalingMode get ();
}
static member ImageScalingMode : ImageScalingMode with get
static function get ImageScalingMode () : ImageScalingMode

Property Value

Type: Microsoft.VisualStudio.PlatformUI.ImageScalingMode
The ImageScalingMode algorithm to be used for resizing images in WinForms/Win32.

.NET Framework Security

See Also

Reference

DpiHelper Class

Microsoft.VisualStudio.PlatformUI Namespace