CogImageFile Item Property Cognex VisionPro 9.25 SR1
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: 93.1.0.0
Syntax

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

Parameters

index
Type: System Int32
The index of the item to 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