DpiHelper Properties

Visual Studio 2015
 

Namespace:   Microsoft.VisualStudio.Utilities.Dpi
Assembly:  Microsoft.VisualStudio.Utilities (in Microsoft.VisualStudio.Utilities.dll)

NameDescription
System_CAPS_pubpropertyBitmapScalingMode

The BitmapScalingMode.

System_CAPS_pubpropertySystem_CAPS_staticDefault

eturns a DpiHelper class suitable for scaling images designed for 100% DPI zoom levels (96dpi).

System_CAPS_pubpropertyDeviceDpiX

Gets the screen's (device) current horizontal DPI.

System_CAPS_pubpropertyDeviceDpiY

The screen's (device) current vertical DPI.

System_CAPS_pubpropertyDeviceToLogicalUnitsScalingFactorX

Converts to the horizontal logical units scaling factor.

System_CAPS_pubpropertyDeviceToLogicalUnitsScalingFactorY

Converts to the vertical logical units scaling factor.

System_CAPS_pubpropertyDpiScalePercentX

System_CAPS_pubpropertyDpiScalePercentY

System_CAPS_pubpropertyImageScalingMode

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.

System_CAPS_pubpropertyIsScalingRequired

Determines whether scaling is required when converting between logical-device units

System_CAPS_pubpropertyLogicalDpiX

Gets the helper's logical horizontal DPI.

System_CAPS_pubpropertyLogicalDpiY

Gets the helper's vertical horizontal DPI.

System_CAPS_pubpropertyLogicalToDeviceUnitsScalingFactorX

System_CAPS_pubpropertyLogicalToDeviceUnitsScalingFactorY

System_CAPS_pubpropertyPreScaledImageLayoutTransformScaleX

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.

System_CAPS_pubpropertyPreScaledImageLayoutTransformScaleY

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.

System_CAPS_pubpropertyTransformFromDevice

System_CAPS_pubpropertyTransformToDevice

System_CAPS_pubpropertyUsePreScaledImages

Determines whether images should be pre-scaled at zoom levels higher than 200%, using NearestNeighbor up to the largest multiple of 100%

Return to top
Show: