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, Design Atoms JS, and Design Editor.

BaseViewer.WorkspaceToControl Method (PointF)

Applies to: Graphics Mill Web Controls · Archived documentation

Translates point coordinates from the workspace-related coordinate system to the control-related one.

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

Syntax

C#
public virtual PointF WorkspaceToControl(
	PointF point
)

Parameters

point

Type: System.Drawing..PointF

Point coordinates in the workspace coordinate system.

Return Value

Point coordinates in the control coordinate system.

Remarks

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).

See Also

Reference