L_DocSetHandPrintOptions
#include "ltdoc.h"
L_LTDOC_API L_INT L_DocSetHandPrintOptions(hDoc, pHandOpts)
L_HDOC hDoc; |
/* handle to the OCR document */ |
pHANDPRINTOPTIONS pHandOpts; |
/* pointer to a HANDPRINTOPTIONS structure */ |
Sets the hand print options to be used in the next recognition process.
Parameter |
Description |
hDoc |
Handle to the OCR document. |
pHandOpts |
Pointer to a HANDPRINTOPTIONS structure which contains the options to be set. |
Returns
SUCCESS |
The function was successful. |
< 1 |
An error occurred. Refer to Return Codes. |
Comments
Sets the Hand print options to be used in the next recognition process.
This function will be used only when the recognition module is RECOGMODULE_HAND_PRINTED_NUMERAL.
To get the current hand print options, call L_DocGetHandPrintOptions.
To recognize a page, call L_DocRecognize.
Required DLLs and Libraries
LTDOC For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application. |
See Also
Functions: |
L_DocSetRecognizeModuleTradeOff, L_DocGetRecognizeModuleTradeOff, L_DocSetMOROptions, L_DocGetMOROptions, L_DocGetHandPrintOptions, L_DocSetOMROptions, L_DocGetOMROptions |
Topics: |
|
|
Example
L_INT DocSetHandPrintOptionsExample(L_HDOC hDoc) { L_INT nRet; HANDPRINTOPTIONS HandOpts; ZeroMemory(&HandOpts, sizeof(HANDPRINTOPTIONS)); nRet = L_DocGetHandPrintOptions (hDoc, &HandOpts, sizeof(HANDPRINTOPTIONS)); if(nRet != SUCCESS) return nRet; if (HandOpts.style != HAND_STYLE_US) HandOpts.style = HAND_STYLE_US; HandOpts.bSpace = FALSE; nRet = L_DocSetHandPrintOptions(hDoc, &HandOpts); if(nRet != SUCCESS) return nRet; return SUCCESS; }