---
title: "BitmapViewer..::.GetControlPixelsPerUnitX Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_WinControls_BitmapViewer_GetControlPixelsPerUnitX_1_e36c6002.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/)

# BitmapViewer.GetControlPixelsPerUnitX Method 
 
Returns the horizontal resolution, in pixels per the specified unit.
 
**Namespace:** [Aurigma.GraphicsMill.WinControls](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_WinControls.htm.md)
 **Assembly:** Aurigma.GraphicsMill.WinControls (in Aurigma.GraphicsMill.WinControls.dll)
 
## Syntax
  
```
Public Overrides Function GetControlPixelsPerUnitX ( _workspaceUnit As Unit _
) As Single
```
 
```csharp
public override float GetControlPixelsPerUnitX(Unit workspaceUnit
)
```
 
### Parameters
 
 - workspaceUnit
     - Type: [Aurigma.GraphicsMill.Unit](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Unit.htm.md)
The physical unit of measure.
 
### Return Value
The horizontal resolution.
 
### Implements
 
[ICoordinateMapper.GetControlPixelsPerUnitX(Unit)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_WinControls_ICoordinateMapper_GetControlPixelsPerUnitX_1_e36c6002.htm.md)
   
## See Also

### Reference

- [BitmapViewer Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_BitmapViewer.htm.md)
- [Aurigma.GraphicsMill.WinControls Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_WinControls.htm.md)
