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

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

public string AddImage(
	ICogImage image,
	CogVerificationSimpleResultConstants defaultSimpleResult,
	string defaultGrade
)

Parameters

image
Type: Cognex.VisionPro ICogImage
The ICogImage object that will be added to tha database
defaultSimpleResult
Type: Cognex.VisionPro.Inspection CogVerificationSimpleResultConstants
The default simple result for the added image
defaultGrade
Type: System String
The default grade for the added image

Return Value

Type: String
A key of the image that were added to the database.
Exceptions

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