Aracılığıyla paylaş


DpiAwareness.DeviceToLogicalPoint Method

Definition

Overloads

DeviceToLogicalPoint(IntPtr, Point)

Converts a Point from device units to logical units.

DeviceToLogicalPoint(IntPtr, Point)

Converts a Point from device units to logical units.

DeviceToLogicalPoint(Control, Point)

Converts a Point from device units to logical units.

DeviceToLogicalPoint(Visual, Point)

Converts a Point from device units to logical units.

DeviceToLogicalPoint(IntPtr, Point)

Converts a Point from device units to logical units.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Drawing::Point DeviceToLogicalPoint(IntPtr hwnd, System::Drawing::Point point);
public static System.Drawing.Point DeviceToLogicalPoint (this IntPtr hwnd, System.Drawing.Point point);
static member DeviceToLogicalPoint : nativeint * System.Drawing.Point -> System.Drawing.Point
<Extension()>
Public Function DeviceToLogicalPoint (hwnd As IntPtr, point As Point) As Point

Parameters

hwnd
IntPtr

nativeint

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

point
Point

The Point to convert.

Returns

A new Point in logical units.

Applies to

DeviceToLogicalPoint(IntPtr, Point)

Converts a Point from device units to logical units.

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

Parameters

hwnd
IntPtr

nativeint

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

point
Point

The Point to convert.

Returns

A new Point in logical units.

Applies to

DeviceToLogicalPoint(Control, Point)

Converts a Point from device units to logical units.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Drawing::Point DeviceToLogicalPoint(System::Windows::Forms::Control ^ control, System::Drawing::Point point);
public static System.Drawing.Point DeviceToLogicalPoint (this System.Windows.Forms.Control control, System.Drawing.Point point);
static member DeviceToLogicalPoint : System.Windows.Forms.Control * System.Drawing.Point -> System.Drawing.Point
<Extension()>
Public Function DeviceToLogicalPoint (control As Control, point As Point) As Point

Parameters

control
Control

The Control with which to convert the given Point.

point
Point

The Point to convert.

Returns

A new Point in logical units.

Applies to

DeviceToLogicalPoint(Visual, Point)

Converts a Point from device units to logical units.

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

Parameters

visual
Visual

The Visual with which to convert the given Point.

point
Point

The Point to convert.

Returns

A new Point in logical units.

Applies to