CogImageFile Item Property Cognex VisionPro 9.7
Gets the item at the specified index. In C#, this property is the indexer for the collection.

Namespace: Cognex.VisionPro.ImageFile
Assembly: Cognex.VisionPro.ImageFile (in Cognex.VisionPro.ImageFile.dll) Version: 73.0.0.0
Syntax

public virtual ICogImage this[
	int index
] { get; }

Property Value

Type: ICogImage
Examples

Imports Cognex.VisionPro.ImageFile

' Get an image from fileDim ImageFile as New CogImageFile
Dim Image As CogImage8Grey
imagefile.Open("c:\image.bmp", CogImageFileModeConstants.Read)
Image = imagefile.Item(0)
imagefile.Close()
See Also