CogImageFile DeleteImage Method Cognex VisionPro 9.8 SR1
Delete the specified image 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 void DeleteImage(
	int imageIndex
)

Parameters

imageIndex
Type: System Int32

The index of the image to delete.

Events

Event TypeReason
CogImageFile Changed

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 image from the current open file. This function is equivalent to Delete( Int32 ), except that you supply a single image index as an Integer.

    See Also