Rectangle SetCenterWidthHeight Method Cognex VisionPro 9.20

Initialize from CenterX,CenterY,Width,Height.

Namespace: Cognex.Vision
Assembly: Cognex.Vision.Core.Net (in Cognex.Vision.Core.Net.dll) Version: 9.10.0.0
Syntax

public void SetCenterWidthHeight(
	double centerX,
	double centerY,
	double width,
	double height
)
Exceptions

ExceptionCondition
ArgumentExceptionwidth is <= 0 or height is <= 0.
Remarks

Changed Raised when the rectangle geometry changes.

Remarks

Sets the x- and y-coordinates of the center and the width and height of this rectangle.

See Also