DpiAwareness.LogicalToDeviceSize 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
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
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
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
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
Returns
A new Size in device units.