CogVerificationDatabase AddImage Method ( ICogImage , CogVerificationSimpleResultConstants)Cognex VisionPro
Adds the specified images to this verification database.

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

public string[] AddImage(
	ICogImage[] images,
	CogVerificationSimpleResultConstants defaultSimpleResult
)

Parameters

images
Type:  Cognex.VisionPro ICogImage 
The array of ICogImage objects that will be added to tha database
defaultSimpleResult
Type: Cognex.VisionPro.Inspection CogVerificationSimpleResultConstants
The default simple result for all the added images

Return Value

Type:  String 
The keys of the images that were added to the database.
Exceptions

ExceptionCondition
InvalidOperationException Thrown if not currently connected.
ArgumentNullException Thrown if any of the images is null.
ArgumentNullException Thrown if the image cannot be added to the database.
See Also