DpiAwareness.LogicalToDevicePoint 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
LogicalToDevicePoint(IntPtr, Point) |
Converts a Point from logical units to device units. |
LogicalToDevicePoint(IntPtr, Point) |
Converts a Point from logical units to device units. |
LogicalToDevicePoint(Control, Point) |
Converts a Point from logical units to device units. |
LogicalToDevicePoint(Visual, Point) |
Converts a Point from logical units to device units. |
LogicalToDevicePoint(IntPtr, Point)
Converts a Point from logical units to device units.
public:
[System::Runtime::CompilerServices::Extension]
static System::Drawing::Point LogicalToDevicePoint(IntPtr hwnd, System::Drawing::Point point);
public static System.Drawing.Point LogicalToDevicePoint (this IntPtr hwnd, System.Drawing.Point point);
static member LogicalToDevicePoint : nativeint * System.Drawing.Point -> System.Drawing.Point
<Extension()>
Public Function LogicalToDevicePoint (hwnd As IntPtr, point As Point) As Point
Parameters
Returns
A new Point in device units.
Applies to
LogicalToDevicePoint(IntPtr, Point)
Converts a Point from logical units to device units.
public:
[System::Runtime::CompilerServices::Extension]
static System::Windows::Point LogicalToDevicePoint(IntPtr hwnd, System::Windows::Point point);
public static System.Windows.Point LogicalToDevicePoint (this IntPtr hwnd, System.Windows.Point point);
static member LogicalToDevicePoint : nativeint * System.Windows.Point -> System.Windows.Point
<Extension()>
Public Function LogicalToDevicePoint (hwnd As IntPtr, point As Point) As Point
Parameters
Returns
A new Point in device units.
Applies to
LogicalToDevicePoint(Control, Point)
Converts a Point from logical units to device units.
public:
[System::Runtime::CompilerServices::Extension]
static System::Drawing::Point LogicalToDevicePoint(System::Windows::Forms::Control ^ control, System::Drawing::Point point);
public static System.Drawing.Point LogicalToDevicePoint (this System.Windows.Forms.Control control, System.Drawing.Point point);
static member LogicalToDevicePoint : System.Windows.Forms.Control * System.Drawing.Point -> System.Drawing.Point
<Extension()>
Public Function LogicalToDevicePoint (control As Control, point As Point) As Point
Parameters
Returns
A new Point in device units.
Applies to
LogicalToDevicePoint(Visual, Point)
Converts a Point from logical units to device units.
public:
[System::Runtime::CompilerServices::Extension]
static System::Windows::Point LogicalToDevicePoint(System::Windows::Media::Visual ^ visual, System::Windows::Point point);
public static System.Windows.Point LogicalToDevicePoint (this System.Windows.Media.Visual visual, System.Windows.Point point);
static member LogicalToDevicePoint : System.Windows.Media.Visual * System.Windows.Point -> System.Windows.Point
<Extension()>
Public Function LogicalToDevicePoint (visual As Visual, point As Point) As Point
Parameters
Returns
A new Point in device units.