DpiHelper.CreateDeviceFromLogicalImage Method (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.

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

public static ImageList CreateDeviceFromLogicalImage(
	this ImageList logicalImageList,
	ImageScalingMode scalingMode = ImageScalingMode.Default
)

Parameters

logicalImageList
Type: System.Windows.Forms.ImageList

The image list.

scalingMode
Type: Microsoft.VisualStudio.PlatformUI.ImageScalingMode

The scaling mode to use when scaling the image.

Return Value

Type: System.Windows.Forms.ImageList

The image.

Return to top
Show: