Delete the specified images from the current open file.
Namespace: Cognex.VisionPro.ImageFileAssembly: Cognex.VisionPro.ImageFile (in Cognex.VisionPro.ImageFile.dll) Version: 65.1.0.0
Syntax
Parameters
- imageIndices
- Type: System Int32
The image indices to delete.
Events
| Event Type | Reason |
|---|---|
| CogImageFileProviderChanged | The number of images in the file has changed. The following state flag may be affected: |
Exceptions
| Exception | Condition |
|---|---|
| CogNoFileOpenException | No file is open. |
| CogBadFileModeException | The file is not open for writing. |
Remarks
Delete the specified images from the current open file. You specify the images to delete by supplying a dynamic array containing the indices of the images to delete.
The storage space occupied by the deleted images is reclaimed.
See Also