Udostępnij za pośrednictwem


DpiHelper.LogicalToDeviceUnitsX Method

Definition

Overloads

LogicalToDeviceUnitsX(Double)

Transforms a horizontal coordinate from logical to device units

LogicalToDeviceUnitsX(Int32)

Transforms a horizontal integer coordinate from logical to device units by scaling it up for current DPI and rounding to nearest integer value

LogicalToDeviceUnitsX(Single)

Transforms a horizontal coordinate from logical to device units

LogicalToDeviceUnitsX(Double)

Transforms a horizontal coordinate from logical to device units

public:
 double LogicalToDeviceUnitsX(double value);
public:
 double LogicalToDeviceUnitsX(double value);
double LogicalToDeviceUnitsX(double value);
public double LogicalToDeviceUnitsX (double value);
member this.LogicalToDeviceUnitsX : double -> double
Public Function LogicalToDeviceUnitsX (value As Double) As Double

Parameters

value
Double

The horizontal value in logical units

Returns

The horizontal value in device units

Applies to

LogicalToDeviceUnitsX(Int32)

Transforms a horizontal integer coordinate from logical to device units by scaling it up for current DPI and rounding to nearest integer value

public:
 int LogicalToDeviceUnitsX(int value);
public:
 int LogicalToDeviceUnitsX(int value);
int LogicalToDeviceUnitsX(int value);
public int LogicalToDeviceUnitsX (int value);
member this.LogicalToDeviceUnitsX : int -> int
Public Function LogicalToDeviceUnitsX (value As Integer) As Integer

Parameters

value
Int32

The horizontal value in logical units

Returns

The horizontal value in device units

Applies to

LogicalToDeviceUnitsX(Single)

Transforms a horizontal coordinate from logical to device units

public:
 float LogicalToDeviceUnitsX(float value);
public:
 float LogicalToDeviceUnitsX(float value);
float LogicalToDeviceUnitsX(float value);
public float LogicalToDeviceUnitsX (float value);
member this.LogicalToDeviceUnitsX : single -> single
Public Function LogicalToDeviceUnitsX (value As Single) As Single

Parameters

value
Single

The horizontal value in logical units

Returns

The horizontal value in device units

Applies to