CogJob Image Method (Int32, Boolean)Cognex VisionPro
Image(int,bool) allows any image to be looked at and/or removed from the image queue. Care must be taken to not remove images from the image queue if the CogJob is running image processing.

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

public ICogImage Image(
	int index,
	bool removeImage
)

Parameters

index
Type: System Int32
The index of the image to be retrieved from the image queue. The oldest image is at index 0.
removeImage
Type: System Boolean
If this boolean is true, then the specified image will be removed from the image queue. If false, then just a reference to the image is returned without removing it from the image queue.

Return Value

Type: ICogImage
A reference to an ICogImage
Events

Event TypeReason
CogJob ImageRemovedFires when an image is removed from the image queue.
Exceptions

ExceptionCondition
CogQueueEmptyExceptionThrown if the image queue is empty.
See Also