ICogImageFileProvider Open Method Cognex VisionPro 9.7
Open an image file using the given mode.

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

void Open(
	string fileName,
	CogImageFileModeConstants mode
)
Exceptions

ExceptionCondition
ArgumentException

mode is not a value.

CogFileOpenException

An error occurred while opening the specified file.

Remarks

Opens an image file using the image file provider that corresponds to the file's extension. If more than one image file provider supports the extension, the one selected is undefined.

Default Value: Read.

See Also