DpiHelper Methods

 

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

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.

Return to top
Show: