DpiHelper Class

 

Microsoft internal use only.

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

System::Object
  Microsoft.VisualStudio.PlatformUI::DpiHelper

[ExtensionAttribute]
public ref class DpiHelper abstract sealed 

NameDescription
System_CAPS_pubpropertySystem_CAPS_staticBitmapScalingMode

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.

System_CAPS_pubpropertySystem_CAPS_staticDeviceDpiX

Microsoft internal use only.

System_CAPS_pubpropertySystem_CAPS_staticDeviceDpiY

Microsoft internal use only.

System_CAPS_pubpropertySystem_CAPS_staticDeviceToLogicalUnitsScalingFactorX

Microsoft internal use only.

System_CAPS_pubpropertySystem_CAPS_staticDeviceToLogicalUnitsScalingFactorY

Microsoft internal use only.

System_CAPS_pubpropertySystem_CAPS_staticDpiScalePercentX

Gets the DPI scale percent for the horizontal scale.

System_CAPS_pubpropertySystem_CAPS_staticDpiScalePercentY

Gets the DPI scale percent for the vertical scale.

System_CAPS_pubpropertySystem_CAPS_staticImageScalingMode

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_pubpropertySystem_CAPS_staticInstance

Gets an instance of DpiHelper.

System_CAPS_pubpropertySystem_CAPS_staticIsScalingRequired

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

System_CAPS_pubpropertySystem_CAPS_staticLogicalDpiX

Gets the logical DPI for the horizontal coordinates.

System_CAPS_pubpropertySystem_CAPS_staticLogicalDpiY

Gets the logical DPI for the vertical coordinates.

System_CAPS_pubpropertySystem_CAPS_staticLogicalToDeviceUnitsScalingFactorX

Microsoft internal use only.

System_CAPS_pubpropertySystem_CAPS_staticLogicalToDeviceUnitsScalingFactorY

Microsoft internal use only.

System_CAPS_pubpropertySystem_CAPS_staticPreScaledImageLayoutTransformScaleX

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_pubpropertySystem_CAPS_staticPreScaledImageLayoutTransformScaleY

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_pubpropertySystem_CAPS_staticTransformFromDevice

Microsoft internal use only.

System_CAPS_pubpropertySystem_CAPS_staticTransformToDevice

Microsoft internal use only.

System_CAPS_pubpropertySystem_CAPS_staticUsePreScaledImages

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

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticCreateDeviceFromLogicalImage(Bitmap^, Size, Color, ImageScalingMode)

Creates and returns a new bitmap or metafile scaled for the device units. When displayed on the device, the scaled image will have same size as the original image would have when displayed at 96dpi.

System_CAPS_pubmethodSystem_CAPS_staticCreateDeviceFromLogicalImage(Bitmap^, Size, ImageScalingMode)

Creates and returns a new bitmap or metafile scaled for the device units. When displayed on the device, the scaled image will have same size as the original image would have when displayed at 96dpi.

System_CAPS_pubmethodSystem_CAPS_staticCreateDeviceFromLogicalImage(Icon^, ImageScalingMode)

Extension method for System.Drawing.Image that creates and returns a new bitmap or metafile scaled for the device units. When displayed on the device, the scaled image will have same size as the original image would have when displayed at 96dpi.

System_CAPS_pubmethodSystem_CAPS_staticCreateDeviceFromLogicalImage(Image^, Color, ImageScalingMode)

Creates and returns a new bitmap or metafile scaled for the device units. When displayed on the device, the scaled image will have same size as the original image would have when displayed at 96dpi.

System_CAPS_pubmethodSystem_CAPS_staticCreateDeviceFromLogicalImage(Image^, ImageScalingMode)

Creates and returns a new bitmap or metafile scaled for the device units. When displayed on the device, the scaled image will have same size as the original image would have when displayed at 96dpi.

System_CAPS_pubmethodSystem_CAPS_staticCreateDeviceFromLogicalImage(ImageList^, Color, ImageScalingMode)

Creates and returns a new bitmap or metafile scaled for the device units. When displayed on the device, the scaled image will have same size as the original image would have when displayed at 96dpi.

System_CAPS_pubmethodSystem_CAPS_staticCreateDeviceFromLogicalImage(ImageList^, ImageScalingMode)

Creates and returns a new bitmap or metafile scaled for the device units. When displayed on the device, the scaled image will have same size as the original image would have when displayed at 96dpi.

System_CAPS_pubmethodSystem_CAPS_staticDeviceToLogicalUnits(Point)

Microsoft internal use only.

System_CAPS_pubmethodSystem_CAPS_staticDeviceToLogicalUnits(Rect)

Microsoft internal use only.

System_CAPS_pubmethodSystem_CAPS_staticDeviceToLogicalUnits(Size)

Microsoft internal use only.

System_CAPS_pubmethodSystem_CAPS_staticDeviceToLogicalUnits(Thickness)

Converts the specified measurement to logical units.

System_CAPS_pubmethodSystem_CAPS_staticDeviceToLogicalUnitsX(Double)

Transforms a horizontal coordinate from device to logical units.

System_CAPS_pubmethodSystem_CAPS_staticDeviceToLogicalUnitsX(Int32)

Transforms a horizontal coordinate from device to logical units.

System_CAPS_pubmethodSystem_CAPS_staticDeviceToLogicalUnitsX(Single)

Transforms a horizontal coordinate from device to logical units.

System_CAPS_pubmethodSystem_CAPS_staticDeviceToLogicalUnitsY(Double)

Transforms a vertical coordinate from device to logical units.

System_CAPS_pubmethodSystem_CAPS_staticDeviceToLogicalUnitsY(Int32)

Transforms a vertical coordinate from device to logical units.

System_CAPS_pubmethodSystem_CAPS_staticDeviceToLogicalUnitsY(Single)

Transforms a vertical coordinate from device to logical units.

System_CAPS_pubmethodSystem_CAPS_staticGetDeviceActualSize(FrameworkElement^)

Microsoft internal use only.

System_CAPS_pubmethodSystem_CAPS_staticGetDeviceHeight(Window^)

Microsoft internal use only.

System_CAPS_pubmethodSystem_CAPS_staticGetDeviceLeft(Window^)

Microsoft internal use only.

System_CAPS_pubmethodSystem_CAPS_staticGetDeviceRect(Window^)

Microsoft internal use only.

System_CAPS_pubmethodSystem_CAPS_staticGetDeviceTop(Window^)

Microsoft internal use only.

System_CAPS_pubmethodSystem_CAPS_staticGetDeviceWidth(Window^)

Microsoft internal use only.

System_CAPS_pubmethodSystem_CAPS_staticLogicalToDeviceUnits(Bitmap^, Color, ImageScalingMode)

Converts the specified coordinates from logical units to device units.

System_CAPS_pubmethodSystem_CAPS_staticLogicalToDeviceUnits(Bitmap^, ImageScalingMode)

Converts the specified coordinates from logical units to device units.

System_CAPS_pubmethodSystem_CAPS_staticLogicalToDeviceUnits(Bitmap^, Size, Color, ImageScalingMode)

Converts the specified coordinates from logical units to device units.

System_CAPS_pubmethodSystem_CAPS_staticLogicalToDeviceUnits(Bitmap^, Size, ImageScalingMode)

Converts the specified coordinates from logical units to device units.

System_CAPS_pubmethodSystem_CAPS_staticLogicalToDeviceUnits(Icon^, ImageScalingMode)

Converts (if necessary) the icon by scaling it to device units. When displayed on the device, the scaled icon will have same size as the original image would have when displayed at 96dpi.

System_CAPS_pubmethodSystem_CAPS_staticLogicalToDeviceUnits(Image^, Color, ImageScalingMode)

Converts the specified coordinates from logical units to device units.

System_CAPS_pubmethodSystem_CAPS_staticLogicalToDeviceUnits(Image^, ImageScalingMode)

Converts the specified coordinates from logical units to device units.

System_CAPS_pubmethodSystem_CAPS_staticLogicalToDeviceUnits(ImageList^, Color, ImageScalingMode)

Converts the specified coordinates from logical units to device units.

System_CAPS_pubmethodSystem_CAPS_staticLogicalToDeviceUnits(ImageList^, ImageScalingMode)

Converts the specified coordinates from logical units to device units.

System_CAPS_pubmethodSystem_CAPS_staticLogicalToDeviceUnits(Point)

Converts the specified coordinates from logical units to device units.

System_CAPS_pubmethodSystem_CAPS_staticLogicalToDeviceUnits(Point)

Converts the specified coordinates from logical units to device units.

System_CAPS_pubmethodSystem_CAPS_staticLogicalToDeviceUnits(PointF)

Converts the specified coordinates from logical units to device units.

System_CAPS_pubmethodSystem_CAPS_staticLogicalToDeviceUnits(Rect)

Microsoft internal use only.

System_CAPS_pubmethodSystem_CAPS_staticLogicalToDeviceUnits(Rectangle)

Converts the specified coordinates from logical units to device units.

System_CAPS_pubmethodSystem_CAPS_staticLogicalToDeviceUnits(RectangleF)

Converts the specified coordinates from logical units to device units.

System_CAPS_pubmethodSystem_CAPS_staticLogicalToDeviceUnits(Size)

Converts the specified coordinates from logical units to device units.

System_CAPS_pubmethodSystem_CAPS_staticLogicalToDeviceUnits(Size)

Microsoft internal use only.

System_CAPS_pubmethodSystem_CAPS_staticLogicalToDeviceUnits(SizeF)

Converts the specified coordinates from logical units to device units.

System_CAPS_pubmethodSystem_CAPS_staticLogicalToDeviceUnits(Thickness)

System_CAPS_pubmethodSystem_CAPS_staticLogicalToDeviceUnitsX(Double)

Returns the closest value in logical units that are converted to an integer value when converted to horizontal device units.

System_CAPS_pubmethodSystem_CAPS_staticLogicalToDeviceUnitsX(Int32)

Returns the closest value in logical units that are converted to an integer value when converted to horizontal device units.

System_CAPS_pubmethodSystem_CAPS_staticLogicalToDeviceUnitsX(Single)

Returns the closest value in logical units that are converted to an integer value when converted to horizontal device units.

System_CAPS_pubmethodSystem_CAPS_staticLogicalToDeviceUnitsY(Double)

Returns the closest value in logical units that will be converted to an integer value when converted to vertical device units.

System_CAPS_pubmethodSystem_CAPS_staticLogicalToDeviceUnitsY(Int32)

Returns the closest value in logical units that will be converted to an integer value when converted to vertical device units.

System_CAPS_pubmethodSystem_CAPS_staticLogicalToDeviceUnitsY(Single)

Returns the closest value in logical units that will be converted to an integer value when converted to vertical device units.

System_CAPS_pubmethodSystem_CAPS_staticRoundToDeviceUnitsX(Double)

Returns the closest value in logical units that will be converted to an integer value when converted to horizontal device units.

System_CAPS_pubmethodSystem_CAPS_staticRoundToDeviceUnitsY(Double)

Returns the closest value in logical units that will be converted to an integer value when converted to vertical device units.

System_CAPS_pubmethodSystem_CAPS_staticScaleLogicalImageForDeviceSize(ImageSource^, Size, BitmapScalingMode)

Scale a WPF image to the indicated size, using the specified scalingMode.

System_CAPS_pubmethodSystem_CAPS_staticSetDeviceHeight(Window^, Double)

Microsoft internal use only.

System_CAPS_pubmethodSystem_CAPS_staticSetDeviceLeft(Window^, Double)

Microsoft internal use only.

System_CAPS_pubmethodSystem_CAPS_staticSetDeviceTop(Window^, Double)

Microsoft internal use only.

System_CAPS_pubmethodSystem_CAPS_staticSetDeviceWidth(Window^, Double)

Microsoft internal use only.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: