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