DpiHelper.CreateDeviceFromLogicalImage Method

Include Protected Members
Include Inherited Members

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.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public methodStatic member CreateDeviceFromLogicalImage(Icon, ImageScalingMode)
Public methodStatic member 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.
Public methodStatic member 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.
Public methodStatic member 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.
Public methodStatic member 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.
Public methodStatic member 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.
Public methodStatic member 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.

Top

See Also

Reference

DpiHelper Class

Microsoft.VisualStudio.PlatformUI Namespace