CogCoreConverters MakeRegion Method Cognex VisionPro 9.20
Create a Deep Copy of the provided ICogRegion VisionPro object in the form of an IRegion Vision object, maintaining dimension equivalence and selected space name. Graphics properties are not converted; the IRegion will have default graphical settings (color, line width, etc).

Namespace: Cognex.VisionPro
Assembly: Cognex.VisionPro.VisionInterop (in Cognex.VisionPro.VisionInterop.dll) Version: 80.0.0.0
Syntax

public static IRegion MakeRegion(
	ICogRegion region
)

Return Value

Type: IRegion
A Vision IRegion that has the equivalent dimensions and selected space name as the provided VisionPro ICogRegion.
Exceptions

ExceptionCondition
[System.ArgumentException] If the provided ICogRegion is not a CogRectangleAffine or CogRectangle.
Remarks

Providing an argument that is null will result in a return that is null as well. In other words, a null converts to a null.

See Also