Main JB2 data structure.
Main JB2 data structure. Each JB2Image consists of an array of shapes and an array of blits. These arrays can be populated by hand using functions add_shape and add_blit, or by decoding JB2 data using function decode. You can then use function get_bitmap to render anti-aliased images, or use function encode to generate JB2 data.
void init()
int get_width() const
int get_height() const
void set_dimension(int width, int height)
GP<GBitmap> get_bitmap(int subsample = 1, int align = 1) const
GP<GBitmap> get_bitmap(const GRect &rect, int subsample=1, int align=1, int dispy=0) const
int get_blit_count() const
JB2Blit* get_blit(int blitno)
const JB2Blit* get_blit(int blitno) const
int add_blit(const JB2Blit &blit)
unsigned int get_memory_usage() const
void encode(ByteStream &bs) const
void decode(ByteStream &bs, JB2DecoderCallback *cb=0, void *arg=0)
bool reproduce_old_bug
Alphabetic index HTML hierarchy of classes or Java