Mode in which the file was opened.
Namespace: Cognex.VisionPro.ImageFileAssembly: Cognex.VisionPro.ImageFile (in Cognex.VisionPro.ImageFile.dll) Version: 79.0.0.0
Syntax
Property Value
Type: CogImageFileModeConstantsRemarks
Mode in which the file was opened, or Closed if no file is open. This is a read only property.
Default Value: Closed
Examples
Imports Cognex.Visionpro.ImageFile
If imagefile.OpenMode = CogImageFileModeConstants.Write Then
MessageBox.Show("File Is Open in Write Mode")
End Ifusing Cognex.Visionpro.ImageFile; if (imagefile.OpenMode == CogImageFileModeConstants.Write) { MessageBox.Show ("File Is Open in Write Mode"); }
See Also