This documentation is for the old version. Go to the latest Graphics Mill docs

BitmapViewer.ControlToWorkspace Method (Point, Unit)

Converts point coordinates from control-related to workspace-related ones.

Namespace: Aurigma.GraphicsMill.WinControls
Assembly: Aurigma.GraphicsMill.WinControls (in Aurigma.GraphicsMill.WinControls.dll)

Syntax

Visual Basic
Public Overrides Function ControlToWorkspace ( _
	controlPoint As Point, _
	workspaceUnit As Unit _
) As PointF
C#
public override PointF ControlToWorkspace(
	Point controlPoint,
	Unit workspaceUnit
)

Parameters

controlPoint

Type: System.Drawing.Point

The point containing values measured in the coordinates of the control.
workspaceUnit

Type: Aurigma.GraphicsMill.Unit

The physical unit of measure.

Return Value

The point containing the values of the controlPoint argument translated into the coordinates of the workspace.

Remarks

To apply a translation from the workspace coordinates to control coordinates, use the WorkspaceToControl(PointF, Unit) method.

See Also

Reference