CogVerificationDatabase AddImages Method ( String , Boolean, CogVerificationSimpleResultConstants)Cognex VisionPro 9.20
Adds all the images in the specified array to this verification database. If any image in the specified array cannot be loaded, this method stops and throws an exception.

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

public string[] AddImages(
	string[] images,
	bool referenceImages,
	CogVerificationSimpleResultConstants defaultSimpleResult
)

Parameters

images
Type:  System String 
An array that holds the full path to the images to be added.
referenceImages
Type: System Boolean
Set this to true if the images should be referenced by their full path. Set this to false if the images should be embedded (copied) into the database.
defaultSimpleResult
Type: Cognex.VisionPro.Inspection CogVerificationSimpleResultConstants
The default simple result for all the added images

Return Value

Type:  String 
An array of all the images that were added to the database.
Exceptions

ExceptionCondition
InvalidOperationException Thrown if not currently connected.
ArgumentNullException Thrown if images is null.
ArgumentNullException Thrown if images is zero length.
See Also