Imports a ccOCAlphabet class from the specified CVL archive file into this CogOCFont class. The archive should contain a single ccOCAlphabet. Import will try to load from the CVL archive via either a ccOCAlphabet or a ccOCAlphabetPtrh.
Namespace: Cognex.VisionPro.OCAssembly: Cognex.VisionPro.OC (in Cognex.VisionPro.OC.dll) Version: 73.0.0.0
Syntax
Parameters
- fileName
- Type: System String
The file from which to load the archive.
Events
| Event Type | Reason |
|---|---|
| CogOCFont Changed | Fires when the font was compiled successfully. The following state flags may be affected: |
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | fileName is empty or NULL. |
| CogFileOpenException | fileName cannot be opened. |
| CogOCFontCvlArchiveErrorException | An error occurred while reading from the CVL archive. The internal state of the font is unchanged. |
Remarks
Imports a ccOCAlphabet object from the specified CVL archive file into this font. The supplied archive should contain a single ccOCAlphabet object. Import will try to load from the CVL archive via either a ccOCAlphabet or a ccOCAlphabetPtrh.
See Also