---
title: "BitmapViewer..::.ControlToWorkspace Method (Point, Unit)"
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_WinControls_BitmapViewer_ControlToWorkspace_2_eb60f29b.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.ControlToWorkspace Method (Point, Unit)
 
Converts point coordinates from control-related to workspace-related ones.
 
**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 ControlToWorkspace ( _controlPoint As Point, _workspaceUnit As Unit _
) As PointF
```
 
```csharp
public override PointF ControlToWorkspace(Point controlPoint,Unit workspaceUnit
)
```
 
### Parameters
 
 - controlPoint
     - Type: [System.Drawing.Point](http://msdn2.microsoft.com/en-us/bk9hwzbw)
The point containing values measured in the coordinates of the control.

 - 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 point containing the values of the controlPoint argument translated into the coordinates of the workspace.
 
### Implements
 
[ICoordinateMapper.ControlToWorkspace(Point, Unit)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_WinControls_ICoordinateMapper_ControlToWorkspace_2_eb60f29b.htm.md)
 
## Remarks
  
To apply a translation from the workspace coordinates to control coordinates, use the [WorkspaceToControl(PointF, Unit)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_WinControls_BitmapViewer_WorkspaceToControl_2_054794b5.htm.md) method.
   
## See Also

### Reference

- [BitmapViewer Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_BitmapViewer.htm.md)
- [ControlToWorkspace Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_WinControls_BitmapViewer_ControlToWorkspace.htm.md)
- [Aurigma.GraphicsMill.WinControls Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_WinControls.htm.md)
