JB2Shape Class Reference

#include <JB2Image.h>

List of all members.


Detailed Description

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.

Definition at line 215 of file JB2Image.h.


Public Attributes

int parent
GP< GBitmapbits
long userdata

Member Data Documentation

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.

Definition at line 230 of file JB2Image.h.

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.

Definition at line 225 of file JB2Image.h.

Private user data.

This long word is provided as a convenience for users of the JB2Image data structures. Neither the rendering functions nor the coding functions ever access this value.

Definition at line 234 of file JB2Image.h.


The documentation for this class was generated from the following file:
KDE Home | KDE Accessibility Home | Description of Access Keys