ImageGear for C and C++ on Windows v19.1 - Updated
Data Types
User Guide > How to Work with... > OCR > Technical Specifications > Migrating from v16 > Data Types

Data type names have been modified according to the following tables. Note that the structure fields and enumeration item names must be corrected as well according to the new recognition header files. In most cases, new names can be easily matched to the old ones.

Structures

V16

V17 (or later)

MODULEINFO

AT_REC_MODULE_INFO

STATISTIC

AT_REC_STATISTICS

PROGRESSMONITOR

AT_REC_PROGRESS_MONITOR

ZONE

AT_REC_ZONE

LETTER

AT_REC_LETTER

OUTPUTCONVERTERINFOA

AT_REC_OUTPUT_CONVERTER_INFO

RECT

Removed. AT_RECTANGLE used instead.

IMG_INFO

Removed. HIGDIBINFO used instead.

OUTDOCUMENT, OUTMARK, OUTPARAGRAPH, OUTCHARACTER

Removed. See Output Parameters for details.

AT_REC_LETTER

This structure has been modified significantly. The following table maps the members of ImageGear v16.1 LETTER structure to v17 (or later) AT_REC_LETTER structure.

IG16.1 LETTER

IG17 (or later)
AT_REC_LETTER

Description

WORD  left

WORD  top

WORD  width

WORD  height

AT_RECTANGLE

Rect

Same meaning, but different representation.

short base

AT_WORD Baseline

In IG16.1, base used to be a top-relative value referencing the rectangle of letter. In IG17.0, BaseLine uses absolute coordinates.

BYTE space

BYTE spaceErr

AT_WORD SpacesCount;

enumIGRecSpaceType SpaceType;

In 16.1 'space' field signals whether there are space(s) in front of the recognized code character. In IG17.0 space is a regular character with some additional information, such as type of the space (can be space, tab, bullet, leader tot, leader line, leader hyphen) and number of spaces. Space in IG16.1 had its own confidence info. In IG17.0 the confidence is common for spaces and non-spaces.

WCHAR code

AT_WCHAR Code

Same meaning.

WCHAR code2

WCHAR code3

               

               

AT_BYTE AlternativeCodesCount

AT_DWORD AlternativeCodeOffset

In IG16.1 two alternative choices for the character are possible, which are placed to code2 and code3 directly. In IG17.0 there is a choice count and an offset of the choices in the external choice array.

AT_BYTE WordSuggestionsCount

AT_DWORD WordSuggestionOffset

New fields that allow getting word suggestions for the whole word.

WORD zone

AT_WORD ZoneIndex

Same meaning.

WORD cellNum

The field was undocumented in 16.1. It has been removed in 17.0.

DWORD history

Removed.

BYTE boldness

Removed; see FontAttribute.

BYTE info

enumIGRecLetterExtraInfo ExtraInfo

The field was undocumented in 16.1. It has been removed in 17.0.

BYTE err

AT_BYTE Confidence

AT_BOOL WordUncertain

In IG16.1 the field combines two values. In IG17.0 the values are separated.

BYTE font

enumIGRecFontType FontAttribute;

Same meaning.

BYTE fontSize

AT_WORD CapitalLetterHeight

New field expresses a measure of the capital letter height in pixels.

BYTE makeup   

enumIGRecMakeupInfo Makeup

Same meaning; more info is available in the new field.

short lang;

short lang2

enumIGRecLanguages Language

enumIGRecLanguages AlternativeLanguage

Same meaning.  

AT_BYTE UnderlineDotWidth

New field in IG17.0.

AT_BYTE UnderlineGapWidth

New field in IG17.0.

AT_BYTE ForegroundColorIndex

New field in IG17.0.

AT_BYTE BackgroundColorIndex

New field in IG17.0.

Enumerations

V16

V17 (or later)

KRECMODULES

enumIGRecModuleInfoId

IMG_ROTATE

enumIGRecImgRotate

IMG_INVERT

enumIGRecImgInvert

IMG_DESKEW

enumIGRecImgDeskew

IMG_CONVERSION

enumIGRecImgConversion

IMG_RESENH

enumIGRecImgResEnhancement

FILLINGMETHOD

enumIGRecFillingMethod

RECOGNITIONMODULE

enumIGRecRecognitionModule

CHR_FILTER

enumIGRecChrFilter

LANG_ENA

enumIGRecLangEnable

LANGUAGES

enumIGRecLanguages

OUTCODEPAGETYPE

enumIGRecOutCodePageType

PROCESSID

enumIGRecProcessId

CHECKWORDRETURNCODE

enumIGRecCheckWordReturnCode

ZONETYPE

enumIGRecZoneType

RECERR

enumIGRecError

Constants

V16

V17 (or later)

enum enumIGRecMakeupInfo

R_ENDOFLINE

R_ENDOFPARA

R_ENDOFWORD

R_ENDOFZONE

R_ENDOFPAGE

R_ENDOFCELL

R_ENDOFROW

R_INTABLE

R_TEXT_DIR_MASK

R_NORMTEXT

R_VERTTEXT

R_LEFTTEXT

R_RIGHTTEXT

IG_REC_R_ENDOFLINE

IG_REC_R_ENDOFPARA

IG_REC_R_ENDOFWORD

IG_REC_R_ENDOFZONE

IG_REC_R_ENDOFPAGE

IG_REC_R_ENDOFCELL

IG_REC_R_ENDOFROW

IG_REC_R_INTABLE

IG_REC_R_TEXT_DIR_MASK

IG_REC_R_NORMTEXT

IG_REC_R_VERTTEXT

IG_REC_R_LEFTTEXT

IG_REC_R_RIGHTTEXT

enum enumIGRecFontType

R_NO_ITALIC

R_ITALIC

R_BOLD

R_SANSSERIF

R_SERIF

R_PROPORTIONAL

R_MONOSPACED

R_SMALLCAPS

R_UNDERLINE

R_STRIKETHROUGH

R_SUBSCRIPT

R_SUPERSCRIPT

R_DROPCAP

R_POPCAP

R_INVERTED

IG_REC_FONTTYPE_NOITALIC

IG_REC_FONTTYPE_ITALIC

IG_REC_FONTTYPE_BOLD

IG_REC_FONTTYPE_SANSSERIF

IG_REC_FONTTYPE_SERIF

IG_REC_FONTTYPE_PROPORTIONAL

IG_REC_FONTTYPE_MONOSPACED

IG_REC_FONTTYPE_SMALLCAPS

IG_REC_FONTTYPE_UNDERLINE

IG_REC_FONTTYPE_STRIKETHROUGH

IG_REC_FONTTYPE_SUBSCRIPT

IG_REC_FONTTYPE_SUPERSCRIPT

IG_REC_FONTTYPE_DROPCAP

IG_REC_FONTTYPE_POPCAP

IG_REC_FONTTYPE_INVERTED