CogPointMarker SetCenterRotationSize Method Cognex VisionPro
Sets x and y coordinates of the center point, rotation (in radian) and the size (in screen pixels) of a side of the bounding square of the point marker. Size must be greater than zero.

Namespace: Cognex.VisionPro
Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 65.1.0.0
Syntax

public void SetCenterRotationSize(
	double x,
	double y,
	double rotation,
	int sizeInScreenPixels
)

Parameters

x
Type: System Double

The x-coordinate of the center of the point marker.

y
Type: System Double

The y-coordinate of the center of the point marker.

rotation
Type: System Double

The rotation angle (in radians) of the point marker.

sizeInScreenPixels
Type: System Int32

The size (in pixels) of the bounding box of the point marker.

Events

Event TypeReason
CogPointMarker Changed

Fires when the value of this property changes.

The following state flags may be affected:

    Exceptions

    ExceptionCondition
    ArgumentException

    sizeInScreenPixels is <= 0.

    Remarks

    Sets x- and y-coordinates of the center point, rotation (in radians) and the size (in screen pixels) of a side of the bounding square of the point marker.

    See Also