---
title: "UnitConverterObject..::.VerticalPixelsToUnits Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_UnitConverterObject_VerticalPixelsToUnits_1_e1836fc4.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.VerticalPixelsToUnits Method 
 
Converts vertical value from pixels to unit specified in [Unit](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_UnitConverterObject_Unit.htm.md) property.
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Function VerticalPixelsToUnits ( _pixels As Integer _
) As Single
```
 
```csharp
public float VerticalPixelsToUnits(int pixels
)
```
 
### Parameters
 
 - pixels
     - Type: [System.Int32](http://msdn2.microsoft.com/en-us/td2s409d)
Vertical value in pixels.
 
### Return Value
Vertical value converted into necessary unit.
 
## Remarks
 Examples of horizontal values are image height, Y-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)
