Gets or sets the item at the specified index. In C#, this property is the indexer for the collection.
Namespace: Cognex.VisionPro.ImageFileAssembly: Cognex.VisionPro.ImageFile (in Cognex.VisionPro.ImageFile.dll) Version: 65.1.0.0
public virtual ICogImage this[
int index
] { get; }public virtual ICogImage this[
int index
] { get; }Public Overridable ReadOnly Default Property Item (
index As Integer
) As ICogImage
Get
Public Overridable ReadOnly Default Property Item (
index As Integer
) As ICogImage
Get
public:
virtual property ICogImage^ default[int index] {
ICogImage^ get (int index);
}public:
virtual property ICogImage^ default[int index] {
ICogImage^ get (int index);
}Parameters
- index
- Type: System Int32
The index of the item to get or set.
Property Value
Type:
ICogImageImports 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()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()