CogDisplay SetScreenPanAnchor Method Cognex VisionPro 9.8
Sets the screen pan anchor position.

Namespace: Cognex.VisionPro.Display
Assembly: Cognex.VisionPro.Display.Controls (in Cognex.VisionPro.Display.Controls.dll) Version: 75.1.0.0 (75.1.0.0)
Syntax

public virtual void SetScreenPanAnchor(
	double x,
	double y,
	CogDisplayPanAnchorConstants method
)
Events

Event TypeReason
CogDisplay ChangedFires when the screen pan anchor point changes.
Exceptions

Remarks

The image pan anchor is the center of the display control's display area for the purposes of image panning. When you specify a value for PanX or PanY you are specifying a distance between the image pan anchor point and the screen pan anchor point.

When method is Relative, the values of x and y are in the range 0.0 to 1.0. The point (0,0) is the top left of the display and the point (1,1) is the bottom right of the display.

When method is Absolute, the values of x and y are absolute coordinate values.

See Also