---
title: "BaseViewer..::.controlToWorkspacePoint Method "
canonical: https://www.graphicsmill.com/docs/gmwc/M_J_GraphicsMill_BaseViewer_controlToWorkspacePoint.htm
archived: true
applies_to:
  - product: "Graphics Mill Web Controls"
---

**You’re viewing documentation for an outdated product.** Graphics Mill Web Controls is no longer part of Graphics Mill. For current design editing and rendering tools, see [Design Atoms .NET](https://customerscanvas.com/docs/on-premises/design-atoms-cs/), [Design Atoms JS](https://customerscanvas.com/docs/on-premises/design-atoms-js/), and [Design Editor](https://customerscanvas.com/docs/on-premises/design-editor/).

# BaseViewer.controlToWorkspacePoint Method 

**Applies to:** Graphics Mill Web Controls · **Archived documentation**
 
Translates coordinates from the control-related coordinate system to the workspace-related one.
 
**Namespace:** [GraphicsMill](https://www.graphicsmill.com/docs/gmwc/N_J_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill.AjaxControls (in Aurigma.GraphicsMill.AjaxControls.dll)
 
## Syntax
  
```
function controlToWorkspacePoint(point);
```
 
### Parameters
 
 - point
     - Type: [GraphicsMill..PointF](https://www.graphicsmill.com/docs/gmwc/T_J_GraphicsMill_PointF.htm.md)
Coordinates in the control coordinate system.
 
### Return Value
Coordinates in the workspace coordinate system.
 
## Remarks
  
The [BitmapViewer](https://www.graphicsmill.com/docs/gmwc/T_J_GraphicsMill_BitmapViewer.htm.md) allows to handle two coordinate systems: workspace-related and control-related and provides the controlToWorkspacePoint(PointF) method to translate the point from the control-related coordinate system to the workspace-related one.
 
The workspace-related coordinate system represents logical coordinates of the image loaded in the control and allows to work with it regardless of zoom, scroll or alignment. The control-related one is used to measure parameters of standard control events (e.g. position of the mouse pointer).
 
This method corresponds to [BaseViewer.ControlToWorkspace(System.Drawing.PointF)](https://www.graphicsmill.com/docs/gmwc/M_Aurigma_GraphicsMill_AjaxControls_BaseViewer_ControlToWorkspace_1_ea862d5e.htm.md) server-side member.
   
## See Also

### Reference

- [BaseViewer Class](https://www.graphicsmill.com/docs/gmwc/T_J_GraphicsMill_BaseViewer.htm.md)
- [GraphicsMill Namespace](https://www.graphicsmill.com/docs/gmwc/N_J_GraphicsMill.htm.md)
- [BaseViewer..workspaceToControlPoint(Point)](https://www.graphicsmill.com/docs/gmwc/M_J_GraphicsMill_BaseViewer_workspaceToControlPoint.htm.md)
