DpiHelper.LogicalToDeviceUnits Method (Image%, Color, ImageScalingMode)
Converts the specified coordinates from logical units to device units.
Namespace: Microsoft.VisualStudio.PlatformUI
Assembly: Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)
Syntax
'Declaration
Public Shared Sub LogicalToDeviceUnits ( _
ByRef image As Image, _
backgroundColor As Color, _
scalingMode As ImageScalingMode _
)
public static void LogicalToDeviceUnits(
ref Image image,
Color backgroundColor,
ImageScalingMode scalingMode
)
public:
static void LogicalToDeviceUnits(
Image^% image,
Color backgroundColor,
ImageScalingMode scalingMode
)
static member LogicalToDeviceUnits :
image:Image byref *
backgroundColor:Color *
scalingMode:ImageScalingMode -> unit
public static function LogicalToDeviceUnits(
image : Image,
backgroundColor : Color,
scalingMode : ImageScalingMode
)
Parameters
image
Type: Image%The image.
backgroundColor
Type: ColorThe background color.
scalingMode
Type: Microsoft.VisualStudio.PlatformUI.ImageScalingModeThe scaling mode.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.