DpiHelper.LogicalToDeviceUnits Method (Bitmap%, Size, 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 imageStrip As Bitmap, _
    logicalImageSize As Size, _
    scalingMode As ImageScalingMode _
)
public static void LogicalToDeviceUnits(
    ref Bitmap imageStrip,
    Size logicalImageSize,
    ImageScalingMode scalingMode
)
public:
static void LogicalToDeviceUnits(
    Bitmap^% imageStrip, 
    Size logicalImageSize, 
    ImageScalingMode scalingMode
)
static member LogicalToDeviceUnits : 
        imageStrip:Bitmap byref * 
        logicalImageSize:Size * 
        scalingMode:ImageScalingMode -> unit
public static function LogicalToDeviceUnits(
    imageStrip : Bitmap, 
    logicalImageSize : Size, 
    scalingMode : ImageScalingMode
)

Parameters

  • imageStrip
    Type: Bitmap%

    The image strip.

  • logicalImageSize
    Type: Size

    The logical image size.

.NET Framework Security

See Also

Reference

DpiHelper Class

LogicalToDeviceUnits Overload

Microsoft.VisualStudio.PlatformUI Namespace