Control.LogicalToDeviceUnits 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
LogicalToDeviceUnits(Size) |
Transforms a size from logical to device units by scaling it for the current DPI and rounding down to the nearest integer value for width and height. |
LogicalToDeviceUnits(Int32) |
Converts a Logical DPI value to its equivalent DeviceUnit DPI value. |
LogicalToDeviceUnits(Size)
Transforms a size from logical to device units by scaling it for the current DPI and rounding down to the nearest integer value for width and height.
public:
System::Drawing::Size LogicalToDeviceUnits(System::Drawing::Size value);
public System.Drawing.Size LogicalToDeviceUnits (System.Drawing.Size value);
member this.LogicalToDeviceUnits : System.Drawing.Size -> System.Drawing.Size
Public Function LogicalToDeviceUnits (value As Size) As Size
Parameters
- value
- Size
The size to be scaled.
Returns
The scaled size.
Applies to
LogicalToDeviceUnits(Int32)
Converts a Logical DPI value to its equivalent DeviceUnit DPI value.
public:
int LogicalToDeviceUnits(int value);
public int LogicalToDeviceUnits (int value);
member this.LogicalToDeviceUnits : int -> int
Public Function LogicalToDeviceUnits (value As Integer) As Integer
Parameters
- value
- Int32
The Logical value to convert.
Returns
The resulting DeviceUnit value.
Applies to
Saran dan Komentar
https://aka.ms/ContentUserFeedback.
Segera hadir: Sepanjang tahun 2024 kami akan menghentikan penggunaan GitHub Issues sebagai mekanisme umpan balik untuk konten dan menggantinya dengan sistem umpan balik baru. Untuk mengetahui informasi selengkapnya, lihat:Kirim dan lihat umpan balik untuk