[]
Converts value of this Unit structure to value in specified units of measurement.
public double Convert(UnitTypeEnum to)
Type | Name | Description |
---|---|---|
UnitTypeEnum | to | The target unit of measurement. |
Type | Description |
---|---|
double | Returns the value in |
Converts a value from pixel unit of measurement to another.
public static double Convert(double value, double fromDpi, UnitTypeEnum to)
Type | Name | Description |
---|---|---|
double | value | The value to convert in pixels. |
double | fromDpi | The source dpi. |
UnitTypeEnum | to | The target unit of measurement. |
Type | Description |
---|---|
double |
|
Converts a value from one unit of measurement to pixel.
public static double Convert(double value, UnitTypeEnum from, double toDpi)
Type | Name | Description |
---|---|---|
double | value | The value to convert in |
UnitTypeEnum | from | The source unit of measurement. |
double | toDpi | The target dpi. |
Type | Description |
---|---|
double |
|
Converts a value from one unit of measurement to another.
public static double Convert(double value, UnitTypeEnum from, UnitTypeEnum to)
Type | Name | Description |
---|---|---|
double | value | The value to convert. |
UnitTypeEnum | from | The source unit of measurement. |
UnitTypeEnum | to | The target unit of measurement. |
Type | Description |
---|---|
double |
|