Condividi tramite


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

Parameters

  • bitmapImage
    Type: Bitmap%

    The bitmap.

  • backgroundColor
    Type: Color

    The background color.

.NET Framework Security

See Also

Reference

DpiHelper Class

LogicalToDeviceUnits Overload

Microsoft.VisualStudio.PlatformUI Namespace