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.
int get_width() const
int get_height() const
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_shape_count() const
JB2Shape* get_shape(int shapeno)
const JB2Shape* get_shape(int shapeno) const
int get_blit_count() const
JB2Blit* get_blit(int blitno)
const JB2Blit* get_blit(int blitno) const
void compress()
unsigned int get_memory_usage() const
void set_dimension(int width, int height)
int add_shape(const JB2Shape &shape)
int add_blit(const JB2Blit &blit)
void encode(ByteStream &bs, int mode=0) const
void decode(ByteStream &bs, int mode=0)
GString comment
Alphabetic index HTML hierarchy of classes or Java