DpiAwareness.DeviceToLogicalPoint 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
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
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
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
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
Returns
A new Point in logical units.