DpiHelper::CreateDeviceFromLogicalImage Method (Image^, ImageScalingMode)

Visual Studio 2015
 

Creates and returns a new bitmap or metafile from the logical Image 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.Utilities.Dpi
Assembly:  Microsoft.VisualStudio.Utilities (in Microsoft.VisualStudio.Utilities.dll)

public:
Image^ CreateDeviceFromLogicalImage(
	Image^ logicalImage,
	ImageScalingMode scalingMode = ImageScalingMode::Default
)

Parameters

logicalImage
Type: System.Drawing::Image^

The image to scale from logical units to device units.

scalingMode
Type: Microsoft.VisualStudio.PlatformUI::ImageScalingMode

The scaling mode to use when scaling the images in the strip.

Return Value

Type: System.Drawing::Image^

The image.

Return to top
Show: