class JB2Shape

Shape data structure.

Public Fields

[more]int parent
Subscript of the parent shape.
[more]GP<GBitmap> bits
Bilevel image of the shape pixels.


Documentation

Shape data structure. A JB2Image contains an array of JB2Shape data structures. Each array entry represents an elementary blob of ink such as a character or a segment of line art. Member bits points to a bilevel image representing the shape pixels. Member parent is the subscript of the parent shape.
oint parent
Subscript of the parent shape. The parent shape must always be located before the current shape in the shape array. A negative value indicates that this shape has no parent. Any negative values smaller than -1 further indicates that this shape does not look like a character. This is used to enable a few internal optimizations. This information is saved into the JB2 file, but the actual value of the parent variable is not.

oGP<GBitmap> bits
Bilevel image of the shape pixels. This must be a pointer to a bilevel GBitmap image. This pointer can also be null. The encoder will just silently discard all blits referring to a shape containing a null bitmap.


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java