Freigeben über


DpiAwareness.LogicalToDeviceSize Method

Definition

Overloads

LogicalToDeviceSize(IntPtr, Size)

Converts a Size from logical units to device units.

LogicalToDeviceSize(IntPtr, Size)

Converts a Size from logical units to device units.

LogicalToDeviceSize(Control, Size)

Converts a Point from logical units to device units.

LogicalToDeviceSize(Visual, Size)

Converts a Point from logical units to device units.

LogicalToDeviceSize(IntPtr, Size)

Converts a Size from logical units to device units.

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

Parameters

hwnd
IntPtr

nativeint

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

size
Size

The Size to convert.

Returns

A new Size in device units.

Applies to

LogicalToDeviceSize(IntPtr, Size)

Converts a Size from logical units to device units.

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

Parameters

hwnd
IntPtr

nativeint

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

size
Size

The Size to convert.

Returns

A new Size in device units.

Applies to

LogicalToDeviceSize(Control, Size)

Converts a Point from logical units to device units.

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

Parameters

control
Control

The Control with which to convert the given Size.

size
Size

The Size to convert.

Returns

A new Size in device units.

Applies to

LogicalToDeviceSize(Visual, Size)

Converts a Point from logical units to device units.

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

Parameters

visual
Visual

The Visual with which to convert the given Size.

size
Size

The Size to convert.

Returns

A new Size in device units.

Applies to