You’re viewing documentation for an outdated product. The Graphics Mill Web Controls library has been removed from Graphics Mill and is now part of the Customers Canvas product line, where it is available as a set of APIs for Design Atoms and as Design Editor.

BaseViewer.ControlToWorkspace Method (RectangleF)

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

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

Syntax

C#
public virtual RectangleF ControlToWorkspace(
	RectangleF rect
)

Parameters

rect

Type: System.Drawing..RectangleF

Rectangle coordinates in the control coordinate system.

Return Value

Rectangle coordinates in the workspace 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