---
title: "UnitConverterObject..::.HorizontalUnitsToPixels Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_UnitConverterObject_HorizontalUnitsToPixels_1_7a94462e.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/)

# UnitConverterObject.HorizontalUnitsToPixels Method 
 
Converts horizontal value from unit specified in [Unit](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_UnitConverterObject_Unit.htm.md) property to pixels.
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Function HorizontalUnitsToPixels ( _units As Single _
) As Integer
```
 
```csharp
public int HorizontalUnitsToPixels(float units
)
```
 
### Parameters
 
 - units
     - Type: [System.Single](http://msdn2.microsoft.com/en-us/3www918f)
Horizontal value in unit specified in [Unit](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_UnitConverterObject_Unit.htm.md) property.
 
### Return Value
Horizontal value converted to pixels.
 
## Remarks
 Examples of vertical values are image width, X-coordinate, etc.
   
## See Also

### Reference

- [UnitConverterObject Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_UnitConverterObject.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
