DpiAwareness.DeviceToLogicalVector Method

Definition

Overloads

DeviceToLogicalVector(IntPtr, Vector)

Converts a Vector from device units to logical units.

DeviceToLogicalVector(Visual, Vector)

Converts a Vector from device units to logical units.

DeviceToLogicalVector(IntPtr, Vector)

Converts a Vector from device units to logical units.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Windows::Vector DeviceToLogicalVector(IntPtr hwnd, System::Windows::Vector vector);
public static System.Windows.Vector DeviceToLogicalVector (this IntPtr hwnd, System.Windows.Vector vector);
static member DeviceToLogicalVector : nativeint * System.Windows.Vector -> System.Windows.Vector
<Extension()>
Public Function DeviceToLogicalVector (hwnd As IntPtr, vector As Vector) As Vector

Parameters

hwnd
IntPtr

nativeint

The IntPtr of the window with which to convert the given Vector.

vector
Vector

The Vector to convert.

Returns

A new Vector in logical units.

Applies to

DeviceToLogicalVector(Visual, Vector)

Converts a Vector from device units to logical units.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Windows::Vector DeviceToLogicalVector(System::Windows::Media::Visual ^ visual, System::Windows::Vector vector);
public static System.Windows.Vector DeviceToLogicalVector (this System.Windows.Media.Visual visual, System.Windows.Vector vector);
static member DeviceToLogicalVector : System.Windows.Media.Visual * System.Windows.Vector -> System.Windows.Vector
<Extension()>
Public Function DeviceToLogicalVector (visual As Visual, vector As Vector) As Vector

Parameters

visual
Visual

The Visual with which to convert the given Vector.

vector
Vector

The Vector to convert.

Returns

A new Vector in logical units.

Applies to