MIL_CONST_TEXT_PTR FileName, | //in |
MIL_INT64 Operation, | //in |
MIL_ID FontContextOcrId | //in |
This function saves an existing OCR font context to disk using the MIL font file format. The OCR font context's control, constraint, and/or font character data can all be saved; which data is saved depends on the value of the Operation parameter.
The font character data contains the character representation of each character in the OCR font context. The control data includes controls used to specify the operational controls for a read/verify operation (such as M_BLANK_CHARACTERS, and M_TOUCHING_CHAR) and those used to set the characteristics of the target characters (such as M_THICKEN_CHAR, and M_TARGET_CHAR_SPACING). The constraint data specifies which characters can appear at given positions in the search string.
Specifies the name and path of the file in which to save the font data. It is recommended that you use the MFO file extension for easier use with other Matrox Imaging software products. The function internally handles the opening and closing of this file. If this file already exists, it will be overwritten.
This parameter can be set to one of the following values:
For specifying the file name and
path
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
||||||||||||||||||||||||||||||||||||||
M_INTERACTIVE |
[This is
only applicable to Windows]
Opens the File Save As dialog box from which you can interactively specify the drive, directory, and name of the file. |
||||||||||||||||||||||||||||||||||||||
MIL_TEXT("FileName") 1 |
Specifies the drive, directory, and name of the file (for example, "C:\mydirectory\myfile"). (more details...) |
1 If you are passing the value in a variable, don't enclose it in MIL_TEXT().
Specifies which data to save to disk. The Operation parameter can take one of the following values:
For specifying the data to
save
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Saves the same data as M_SAVE. |
||||||||||||||||||||||||||||||||||||||
M_SAVE |
Saves the OCR font context. |
||||||||||||||||||||||||||||||||||||||
M_SAVE_CONSTRAINT |
Saves only character constraint data. |
||||||||||||||||||||||||||||||||||||||
M_SAVE_CONTROL |
Saves only control data. |
Header | Include mil.h. |
Library | Use mil.lib; milocr.lib. |
DLL | Requires mil.dll; milocr.dll. |