CogDisplay SetImagePanAnchor Method Cognex VisionPro 9.5
Sets the image pan anchor position.

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

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

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

Remarks

Describes the point in the image that should be moved to the screen anchor when PanX and PanY are set to zero. Stated another way, this is the point in the image from which the pan offsets to the screen anchor are measured.

Ifmethod is Relative, thenx, y are interpreted as percent of the screen size or, in a coordinate space where 0,0 is the upper-leftmost screen border of the display control's window, and 1,1 is the lower right extent of the window. For example, calling PanX=0, PanY=0, SetScreenPanAnchor(0.5, 0.5, VARIANT_TRUE) would always keep the image anchor point centered in the display window, even if the display window is resized.

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

Note: This method will cause the image to redraw.

See Also