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.