---
title: "UnitConverter.ConvertUnitsToUnits Method "
canonical: https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_UnitConverter_ConvertUnitsToUnits_4_11d3dc01.htm
product: "Graphics Mill"
---

# UnitConverter.ConvertUnitsToUnits Method 
 
Converts a value measured in one device-independent unit to another one.
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```csharp
public static float ConvertUnitsToUnits(float resolution,float sourceValue,Unit sourceUnit,Unit destinationUnit
)
```
 
### Parameters
 
 - resolution
     - Type: System.Single
A resolution in DPI.

 - sourceValue
     - Type: System.Single
A value measured in *sourceUnit* which should be converted to *destinationUnit*.

 - sourceUnit
     - Type: [Aurigma.GraphicsMill.Unit](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Unit.htm.md)
A source unit.

 - destinationUnit
     - Type: [Aurigma.GraphicsMill.Unit](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Unit.htm.md)
A destination unit.
 
### Return Value
A converted value.
   
## See Also

### Reference

- [UnitConverter Class](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_UnitConverter.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill.htm.md)
