Polygon SetVertices Method Cognex VisionPro 9.23

Modify the coordinates of the vertices to match the supplied values. If there are more supplied values than vertices, append sufficient vertices. If there are fewer supplied values than vertices, discard vertices at the end.

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

public void SetVertices(
	Vect2Collection coordinatesXY
)
Exceptions

ExceptionCondition
ArgumentExceptionNumVertices < 1
OutOfMemoryExceptionThe array cannot be allocated.
Remarks

Changed Raised when vertices are set.

Remarks

Modifies the coordinates of the vertices to match the supplied values. If there are more supplied values than vertices, additional vertices are appended to the polygon. If there are fewer supplied values than vertices, the superfluous vertices are discarded.

See Also