次の方法で共有


DpiAwareness.LogicalToDeviceVector Method

Definition

Overloads

LogicalToDeviceVector(IntPtr, Vector)

Converts a Vector from logical units to device units.

LogicalToDeviceVector(Visual, Vector)

Converts a Vector from logical units to device units.

LogicalToDeviceVector(IntPtr, Vector)

Converts a Vector from logical units to device units.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Windows::Vector LogicalToDeviceVector(IntPtr hwnd, System::Windows::Vector vector);
public static System.Windows.Vector LogicalToDeviceVector (this IntPtr hwnd, System.Windows.Vector vector);
static member LogicalToDeviceVector : nativeint * System.Windows.Vector -> System.Windows.Vector
<Extension()>
Public Function LogicalToDeviceVector (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 device units.

Applies to

LogicalToDeviceVector(Visual, Vector)

Converts a Vector from logical units to device units.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Windows::Vector LogicalToDeviceVector(System::Windows::Media::Visual ^ visual, System::Windows::Vector vector);
public static System.Windows.Vector LogicalToDeviceVector (this System.Windows.Media.Visual visual, System.Windows.Vector vector);
static member LogicalToDeviceVector : System.Windows.Media.Visual * System.Windows.Vector -> System.Windows.Vector
<Extension()>
Public Function LogicalToDeviceVector (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 device units.

Applies to