CogDisplay GetImagePanAnchor Method Cognex VisionPro 9.5
Returns 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 GetImagePanAnchor(
	[OptionalAttribute] out double x,
	[OptionalAttribute] out double y,
	[OptionalAttribute] out CogDisplayPanAnchorConstants method
)

Parameters

x (Optional)
Type: System Double 
The x-coordinate of the pan anchor.
y (Optional)
Type: System Double 
The y-coordinate of the pan anchor.
method (Optional)
Type: Cognex.VisionPro.Display CogDisplayPanAnchorConstants 
How the pan distance is computed.
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