Share via


DpiHelper.Default Property

Definition

Returns a DpiHelper class suitable for scaling images designed for 100% DPI zoom levels (96dpi). The static member can be used in bindings like DpiHelper.Default.BitmapScalingMode or direct properties/methods calls like DpiHelper.Default.LogicalToDevicePixels(), similar to the way the static class DpiHelper in Microsoft.VisualStudio.PlatformUI namespace can be used in VS-specific assemblies to bind to DpiHelper.BitmapScalingMode or call DpiHelper.LogicalToDevicePixels()

public:
 static property Microsoft::VisualStudio::Utilities::Dpi::DpiHelper ^ Default { Microsoft::VisualStudio::Utilities::Dpi::DpiHelper ^ get(); };
public:
 static property Microsoft::VisualStudio::Utilities::Dpi::DpiHelper ^ Default { Microsoft::VisualStudio::Utilities::Dpi::DpiHelper ^ get(); };
public static Microsoft.VisualStudio.Utilities.Dpi.DpiHelper Default { get; }
static member Default : Microsoft.VisualStudio.Utilities.Dpi.DpiHelper
Public Shared ReadOnly Property Default As DpiHelper

Property Value

The default DpiHelper.

Remarks

The static member can be used in bindings like DpiHelper.Default.BitmapScalingMode or direct properties/methods calls like DpiHelper.Default.LogicalToDevicePixels(), similar to the way the static class DpiHelper in Microsoft.VisualStudio.PlatformUI namespace can be used in VS-specific assemblies to bind to DpiHelper.BitmapScalingMode or call DpiHelper.LogicalToDevicePixels().

Applies to