[]
Attempts to convert the current unit value to other unit of measurement.
Only absolute units can be converted. This method throws an exception if the conversion cannot be performed.
public double ConvertUnit(UnitTypeEnum destUnitType)
Type | Name | Description |
---|---|---|
UnitTypeEnum | destUnitType | The target UnitTypeEnum. |
Type | Description |
---|---|
double | The value in |
Attempts to convert the current unit value to other unit of measurement.
Only absolute units can be converted. This method throws an exception if the conversion cannot be performed.
public double ConvertUnit(UnitTypeEnum destUnitType, float destDpi)
Type | Name | Description |
---|---|---|
UnitTypeEnum | destUnitType | The target UnitTypeEnum. |
float | destDpi | The target resolution (used if |
Type | Description |
---|---|
double | The value in |
Attempts to convert the current unit value to other unit of measurement.
Only absolute units can be converted. This method throws an exception if the conversion cannot be performed.
public double ConvertUnit(float sourceDpi, UnitTypeEnum destUnitType, float destDpi)
Type | Name | Description |
---|---|---|
float | sourceDpi | The current unit value's resolution (used if Units is Pixel). |
UnitTypeEnum | destUnitType | The target UnitTypeEnum. |
float | destDpi | The target resolution (used if |
Type | Description |
---|---|
double | The value in |