This documentation is archived and is not being maintained.
DpiHelper Class
Visual Studio 2013
Microsoft internal use only.
Namespace: Microsoft.VisualStudio.PlatformUI
Assembly: Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)
The DpiHelper type exposes the following members.
| Name | Description | |
|---|---|---|
![]() ![]() | BitmapScalingMode | 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. |
![]() ![]() | DeviceDpiX | Microsoft internal use only. |
![]() ![]() | DeviceDpiY | Microsoft internal use only. |
![]() ![]() | DeviceToLogicalUnitsScalingFactorX | Microsoft internal use only. |
![]() ![]() | DeviceToLogicalUnitsScalingFactorY | Microsoft internal use only. |
![]() ![]() | ImageScalingMode | 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. |
![]() ![]() | IsScalingRequired | Determines whether scaling is required when converting between logical-device units. |
![]() ![]() | LogicalToDeviceUnitsScalingFactorX | Microsoft internal use only. |
![]() ![]() | LogicalToDeviceUnitsScalingFactorY | Microsoft internal use only. |
![]() ![]() | TransformFromDevice | Microsoft internal use only. |
![]() ![]() | TransformToDevice | Microsoft internal use only. |
| Name | Description | |
|---|---|---|
![]() ![]() | CreateDeviceFromLogicalImage(Icon, ImageScalingMode) | |
![]() ![]() | CreateDeviceFromLogicalImage(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. |
![]() ![]() | CreateDeviceFromLogicalImage(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. |
![]() ![]() | CreateDeviceFromLogicalImage(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. |
![]() ![]() | CreateDeviceFromLogicalImage(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. |
![]() ![]() | CreateDeviceFromLogicalImage(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. |
![]() ![]() | CreateDeviceFromLogicalImage(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. |
![]() ![]() | DeviceToLogicalUnits(Point) | Microsoft internal use only. |
![]() ![]() | DeviceToLogicalUnits(Rect) | Microsoft internal use only. |
![]() ![]() | DeviceToLogicalUnits(Size) | Microsoft internal use only. |
![]() ![]() | DeviceToLogicalUnits(Thickness) | Converts the specified measurement to logical units. |
![]() ![]() | DeviceToLogicalUnitsX(Double) | Transforms a horizontal coordinate from device to logical units. |
![]() ![]() | DeviceToLogicalUnitsX(Int32) | Transforms a horizontal coordinate from device to logical units. |
![]() ![]() | DeviceToLogicalUnitsX(Single) | Transforms a horizontal coordinate from device to logical units. |
![]() ![]() | DeviceToLogicalUnitsY(Double) | Transforms a vertical coordinate from device to logical units. |
![]() ![]() | DeviceToLogicalUnitsY(Int32) | Transforms a vertical coordinate from device to logical units. |
![]() ![]() | DeviceToLogicalUnitsY(Single) | Transforms a vertical coordinate from device to logical units. |
![]() ![]() | GetDeviceActualSize | Microsoft internal use only. |
![]() ![]() | GetDeviceHeight | Microsoft internal use only. |
![]() ![]() | GetDeviceLeft | Microsoft internal use only. |
![]() ![]() | GetDeviceRect | Microsoft internal use only. |
![]() ![]() | GetDeviceTop | Microsoft internal use only. |
![]() ![]() | GetDeviceWidth | Microsoft internal use only. |
![]() ![]() | LogicalToDeviceUnits(Point) | Converts the specified coordinates from logical units to device units. |
![]() ![]() | LogicalToDeviceUnits(PointF) | Converts the specified coordinates from logical units to device units. |
![]() ![]() | LogicalToDeviceUnits(Rectangle) | Converts the specified coordinates from logical units to device units. |
![]() ![]() | LogicalToDeviceUnits(RectangleF) | Converts the specified coordinates from logical units to device units. |
![]() ![]() | LogicalToDeviceUnits(Size) | Converts the specified coordinates from logical units to device units. |
![]() ![]() | LogicalToDeviceUnits(SizeF) | Converts the specified coordinates from logical units to device units. |
![]() ![]() | LogicalToDeviceUnits(Point) | Converts the specified coordinates from logical units to device units. |
![]() ![]() | LogicalToDeviceUnits(Rect) | Microsoft internal use only. |
![]() ![]() | LogicalToDeviceUnits(Size) | Microsoft internal use only. |
![]() ![]() | LogicalToDeviceUnits(Thickness) | |
![]() ![]() | LogicalToDeviceUnits(Bitmap, ImageScalingMode) | Converts the specified coordinates from logical units to device units. |
![]() ![]() | LogicalToDeviceUnits(Icon, ImageScalingMode) | |
![]() ![]() | LogicalToDeviceUnits(Image, ImageScalingMode) | Converts the specified coordinates from logical units to device units. |
![]() ![]() | LogicalToDeviceUnits(ImageList, ImageScalingMode) | Converts the specified coordinates from logical units to device units. |
![]() ![]() | LogicalToDeviceUnits(Bitmap, Color, ImageScalingMode) | Converts the specified coordinates from logical units to device units. |
![]() ![]() | LogicalToDeviceUnits(Bitmap, Size, ImageScalingMode) | Converts the specified coordinates from logical units to device units. |
![]() ![]() | LogicalToDeviceUnits(Image, Color, ImageScalingMode) | Converts the specified coordinates from logical units to device units. |
![]() ![]() | LogicalToDeviceUnits(ImageList, Color, ImageScalingMode) | Converts the specified coordinates from logical units to device units. |
![]() ![]() | LogicalToDeviceUnits(Bitmap, Size, Color, ImageScalingMode) | Converts the specified coordinates from logical units to device units. |
![]() ![]() | LogicalToDeviceUnitsX(Double) | Returns the closest value in logical units that are converted to an integer value when converted to horizontal device units. |
![]() ![]() | LogicalToDeviceUnitsX(Int32) | Returns the closest value in logical units that are converted to an integer value when converted to horizontal device units. |
![]() ![]() | LogicalToDeviceUnitsX(Single) | Returns the closest value in logical units that are converted to an integer value when converted to horizontal device units. |
![]() ![]() | LogicalToDeviceUnitsY(Double) | Returns the closest value in logical units that will be converted to an integer value when converted to vertical device units. |
![]() ![]() | LogicalToDeviceUnitsY(Int32) | Returns the closest value in logical units that will be converted to an integer value when converted to vertical device units. |
![]() ![]() | LogicalToDeviceUnitsY(Single) | Returns the closest value in logical units that will be converted to an integer value when converted to vertical device units. |
![]() ![]() | RoundToDeviceUnitsX | Returns the closest value in logical units that will be converted to an integer value when converted to horizontal device units. |
![]() ![]() | RoundToDeviceUnitsY | Returns the closest value in logical units that will be converted to an integer value when converted to vertical device units. |
![]() ![]() | SetDeviceHeight | Microsoft internal use only. |
![]() ![]() | SetDeviceLeft | Microsoft internal use only. |
![]() ![]() | SetDeviceTop | Microsoft internal use only. |
![]() ![]() | SetDeviceWidth | Microsoft internal use only. |
Show:
