Partager via


DpiHelper.DeviceToLogicalUnits Method

Definition

Overloads

DeviceToLogicalUnits(Point)

Returns a new Point with the input's coordinates converted from device units to logical units.

DeviceToLogicalUnits(Rect)

Returns a new Rect with the input's coordinates converted from device units to logical units.

DeviceToLogicalUnits(Size)

Returns a new Size with the input's dimensions converted from device units to logical units.

DeviceToLogicalUnits(Thickness)

Returns a new Thickness with the input's dimensions converted from device units to logical units.

DeviceToLogicalUnits(Point)

Returns a new Point with the input's coordinates converted from device units to logical units.

public:
 System::Windows::Point DeviceToLogicalUnits(System::Windows::Point devicePoint);
public System.Windows.Point DeviceToLogicalUnits (System.Windows.Point devicePoint);
member this.DeviceToLogicalUnits : System.Windows.Point -> System.Windows.Point
Public Function DeviceToLogicalUnits (devicePoint As Point) As Point

Parameters

devicePoint
Point

Point in device coordinates

Returns

Point in logical coordinates

Applies to

DeviceToLogicalUnits(Rect)

Returns a new Rect with the input's coordinates converted from device units to logical units.

public:
 System::Windows::Rect DeviceToLogicalUnits(System::Windows::Rect deviceRect);
public System.Windows.Rect DeviceToLogicalUnits (System.Windows.Rect deviceRect);
member this.DeviceToLogicalUnits : System.Windows.Rect -> System.Windows.Rect
Public Function DeviceToLogicalUnits (deviceRect As Rect) As Rect

Parameters

deviceRect
Rect

Rect in device coordinates

Returns

Rect in logical coordinates

Applies to

DeviceToLogicalUnits(Size)

Returns a new Size with the input's dimensions converted from device units to logical units.

public:
 System::Windows::Size DeviceToLogicalUnits(System::Windows::Size deviceSize);
public System.Windows.Size DeviceToLogicalUnits (System.Windows.Size deviceSize);
member this.DeviceToLogicalUnits : System.Windows.Size -> System.Windows.Size
Public Function DeviceToLogicalUnits (deviceSize As Size) As Size

Parameters

deviceSize
Size

Size in device units

Returns

Size in logical units

Applies to

DeviceToLogicalUnits(Thickness)

Returns a new Thickness with the input's dimensions converted from device units to logical units.

public:
 System::Windows::Thickness DeviceToLogicalUnits(System::Windows::Thickness deviceThickness);
public System.Windows.Thickness DeviceToLogicalUnits (System.Windows.Thickness deviceThickness);
member this.DeviceToLogicalUnits : System.Windows.Thickness -> System.Windows.Thickness
Public Function DeviceToLogicalUnits (deviceThickness As Thickness) As Thickness

Parameters

deviceThickness
Thickness

Thickness in device units

Returns

Thickness in logical units

Applies to