MIL_ID ContextGraId, | //in |
MIL_ID FontContextOrResultOcrId, | //in |
MIL_ID DstImageBufOrListGraId, | //in |
MIL_INT64 Operation, | //in |
MIL_INT Index, | //in |
MIL_CONST_TEXT_PTR CharList, | //in |
MIL_INT64 ControlFlag | //in |
This function draws specific features of the OCR fonts or OCR results in the destination image buffer or graphics list.
Specifies the identifier of the graphics context to use when drawing. This parameter must be set to one of the following values:
For specifying the graphics
context
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies that the default graphics context of the current MIL application is used. (more details...) |
||||||||||||||||||||||||||||||||||||||
MIL graphics context identifier |
Specifies a valid graphics context identifier, which you have allocated using MgraAlloc(). |
Specifies the OCR Font context or result buffer from which to extract the features to draw. The OCR Font context or result buffer must have been previously allocated using MocrAllocFont() or MocrAllocResult().
Specifies the identifier of the destination image buffer or graphics list in which to draw. The buffer can be any valid MIL image buffer allocated using MbufAlloc...(). The graphics list must be previously allocated using MgraAllocList(). By drawing into a display's overlay buffer or associating the graphics list with the display, you can also annotate an image non-destructively.
If specifying an image buffer, it must not have a region of interest (ROI) associated with it. Using an image buffer with an ROI will cause an error.
Specifies the type of operation to perform.
The possible Operation parameter values for a OCR Font context are:
For specifying the type of operation to
perform
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
||||||||||||||||||||||||||||||||||||||
M_DRAW_CHAR |
Draws a character representation of the font in the destination image buffer. (more details...) |
The possible Operation parameter values for an OCR result buffer are as follows. These values can be added together to draw multiple features at once.
For an OCR Font context
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
||||||||||||||||||||||||||||||||||||||
M_DRAW_STRING_BOX |
Draws a box around the string that is read in the target. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DRAW_STRING_CHAR_BOX |
Draws all the character boxes of the result(s) of the string(s) read. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DRAW_STRING_CHAR_POSITION |
Draws a cross at the center of the bounding box of each string's character. (more details...) |
Specifies a string containing a list of valid characters to draw when drawing an OCR font. To draw all the characters in the font or to draw results, this parameter should be set to M_NULL.
For specifying the string
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
||||||||||||||||||||||||||||||||||||||
MIL_TEXT("CharList") 1 |
Specifies that, when drawing an OCR font, this parameter can be a null-terminated string specifying a list of valid characters to draw. (more details...) |
1 If you are passing the value in a variable, don't enclose it in MIL_TEXT().
Header | Include mil.h. |
Library | Use mil.lib; milocr.lib. |
DLL | Requires mil.dll; milocr.dll. |