DpiHelper::CreateDeviceFromLogicalImage Method (Icon^, ImageScalingMode)
Visual Studio 2015
Creates and returns a new icon scaled for the device units. When displayed on the device, the scaled icon will have same size as the original icon would have when displayed at 96dpi.
Assembly: Microsoft.VisualStudio.Utilities (in Microsoft.VisualStudio.Utilities.dll)
public:
Icon^ CreateDeviceFromLogicalImage(
Icon^ logicalIcon,
ImageScalingMode scalingMode = ImageScalingMode::Default
)
Parameters
- logicalIcon
-
Type:
System.Drawing::Icon^
The icon.
- scalingMode
-
Type:
Microsoft.VisualStudio.PlatformUI::ImageScalingMode
The scaling mode to use when scaling the images in the strip.
Show: