次の方法で共有


DpiAwareness.LogicalToDevicePoint Method

Definition

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

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 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

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 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

control
Control

The Control with which to convert the given Point.

point
Point

The Point to convert.

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

visual
Visual

The Visual with which to convert the given Point.

point
Point

The Point to convert.

Returns

A new Point in device units.

Applies to