DpiHelper::CreateDeviceFromLogicalImage Method (Image^, Color, ImageScalingMode)
Visual Studio 2015
Creates and returns a new ImageList scaled for the device units. When displayed on the device, the scaled ImageList will have same size as the original ImageList would have when displayed at 96dpi.
Assembly: Microsoft.VisualStudio.Utilities (in Microsoft.VisualStudio.Utilities.dll)
public:
Image^ CreateDeviceFromLogicalImage(
Image^ logicalImage,
Color backgroundColor,
ImageScalingMode scalingMode = ImageScalingMode::Default
)
Parameters
- logicalImage
-
Type:
System.Drawing::Image^
The imagelist to scale from logical units to device units.
- backgroundColor
-
Type:
System.Drawing::Color
A Color value to be used for the image background. When the interpolation mode is Bilinear or Bicubic, the image's margins are interpolated with the background.
- scalingMode
-
Type:
Microsoft.VisualStudio.PlatformUI::ImageScalingMode
The scaling mode to use when scaling the images in the strip.
Show: