DpiAwareness.DeviceToLogicalVector Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
Returns
A new Vector in logical units.