CogImageFileJPEG Delete Method Cognex VisionPro 9.8 SR1
Delete the specified images from the current open file.

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

public virtual void Delete(
	int[] imageIndices
)

Parameters

imageIndices
Type:  System Int32 

The image indices to delete.

Implements

ICogImageFileProvider Delete( Int32 )
Events

Event TypeReason
CogImageFileProviderChanged

The number of images in the file has changed.

The following state flag may be affected:

    Exceptions

    ExceptionCondition
    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