Developer's Documentation for free mobile OCR SDK

Documentation Menu

CharInfo class

Extended information about the character formatting.

warning Important! This class is reserved for future use.

final class CharInfo {
    public final Rect Rect;
    public final Point[] Quadrangle;
    public final int ForegroundColor;
    public final int BackgroundColor;
    public final int Attributes;
}

Properties

Name

Type

Description

Attributes

int

Character attributes as the OR combination of the following flags:

 int CHAR_ATTRIBUTE_ITALIC = 0x0;
 int CHAR_ATTRIBUTE_BOLD = 0x1;
 int CHAR_ATTRIBUTE_UNDERLINED = 0x2;
 int CHAR_ATTRIBUTE_STRIKETHROUGH = 0x4;
 int CHAR_ATTRIBUTE_SMALLCAPS = 0x8;
 int CHAR_ATTRIBUTE_SUPERSCRIPT = 0x10;
 int CHAR_ATTRIBUTE_UNCERTAIN = 0x10000;

BackgroundColor

int

The color of the background.

note Note: The int value is calculated from the RGB triplet using the formula: (red value) + (256 x green value) + (65536 x blue value), where red value is the first triplet component, green value is the second triplet component, blue value is the third triplet component. For example, the int value of the color white equals 16777215.

ForegroundColor

int

The color of the symbol.

Quadrangle

Point[]

The four vertex points of the bounding quadrangle. The vertices are indexed clockwise starting from the bottom left.

Rect

Rect

The bounding rectangle of the symbol.