---
title: "UnitConverter..::.ConvertUnitsToUnits Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_UnitConverter_ConvertUnitsToUnits_4_11d3dc01.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# UnitConverter.ConvertUnitsToUnits Method 
 
Converts a value measured in one device-independent unit to another one.
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Shared Function ConvertUnitsToUnits ( _resolution As Single, _sourceValue As Single, _sourceUnit As Unit, _destinationUnit As Unit _
) As Single
```
 
```csharp
public static float ConvertUnitsToUnits(float resolution,float sourceValue,Unit sourceUnit,Unit destinationUnit
)
```
 
### Parameters
 
 - resolution
     - Type: [System.Single](http://msdn2.microsoft.com/en-us/3www918f)
A resolution in DPI.

 - sourceValue
     - Type: [System.Single](http://msdn2.microsoft.com/en-us/3www918f)
A value measured in *sourceUnit* which should be converted to *destinationUnit*.

 - sourceUnit
     - Type: [Aurigma.GraphicsMill.Unit](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Unit.htm.md)
A source unit.

 - destinationUnit
     - Type: [Aurigma.GraphicsMill.Unit](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Unit.htm.md)
A destination unit.
 
### Return Value
A converted value.
   
## See Also

### Reference

- [UnitConverter Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_UnitConverter.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
