Control.LogicalToDeviceUnits 方法
定义
重载
LogicalToDeviceUnits(Size) |
通过为当前 DPI 缩放小大并将其向下舍入为最接近的宽度和高度的整数值,将大小从逻辑单位转换为设备单位。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) |
将逻辑 DPI 值转换为它的等效 DeviceUnit DPI 值。Converts a Logical DPI value to its equivalent DeviceUnit DPI value. |
LogicalToDeviceUnits(Size)
通过为当前 DPI 缩放小大并将其向下舍入为最接近的宽度和高度的整数值,将大小从逻辑单位转换为设备单位。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
参数
- value
- Size
要缩放的大小。The size to be scaled.
返回
缩放后的大小。The scaled size.
适用于
LogicalToDeviceUnits(Int32)
将逻辑 DPI 值转换为它的等效 DeviceUnit DPI 值。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
参数
- value
- Int32
要转换的逻辑值。The Logical value to convert.
返回
生成的 DeviceUnit 值。The resulting DeviceUnit value.