Main DjVu Image data structure.
Notifications.
Main DjVu Image data structure. This class defines the internal representation of a DjVu image. This representation consists of a few pointers referencing the various components of the DjVu image. These components are created and populated by the decoding function. The rendering functions then can use the available components to compute a pixel representation of the desired segment of the DjVu image.
In the former case DjVuImage will look for its decoded components
(like Sjbz or BG44) by decending the hierarchy of DjVuFiles
starting from the one passed to connect(). In the latter case you can use decode() function to decode
single-page DjVu documents in the old-style way.
void del_file(const DjVuFile * file)
void add_file(const GP<DjVuFile> & file)
void clear(void)
void set_max_size(int max_size)
int get_max_size(void) const
void enable(bool en)
bool is_enabled(void) const
virtual void file_added(const GP<DjVuFile> & file)
virtual void file_deleted(const GP<DjVuFile> & file)
virtual void file_cleared(const GP<DjVuFile> & file)
Construction.
DjVuImage(void)
void connect(const GP<DjVuFile> & file)
Components.
GP<DjVuInfo> get_info() const
GP<IW44Image> get_bg44() const
GP<GPixmap> get_bgpm() const
GP<JB2Image> get_fgjb() const
GP<GPixmap> get_fgpm() const
GP<DjVuPalette> get_fgbc() const
GP<ByteStream> get_anno() const
GP<ByteStream> get_text() const
New style decoding.
Old style decoding (backward compatibility).
Utilities
int get_width() const
int get_height() const
int get_version() const
int get_dpi() const
int get_rounded_dpi() const
double get_gamma() const
GString get_mimetype() const
GString get_short_description() const
GString get_long_description() const
DJVU Image (2325x3156) version 17:
0.0 Kb 'INFO' Page information.
17.3 Kb 'Sjbz' JB2 foreground mask (2325x3156)
2.5 Kb 'BG44' IW44 background (775x1052)
1.0 Kb 'FG44' IW44 foreground colors (194x263)
3.0 Kb 'BG44' IW44 background (part 2).
0.9 Kb 'BG44' IW44 background (part 3).
7.1 Kb 'BG44' IW44 background (part 4).
Compression ratio: 676 (31.8 Kb)
GP<DjVuFile> get_djvu_file(void) const
Checking for legal DjVu files.
int is_legal_photo() const
int is_legal_bilevel() const
int is_legal_compound() const
Rendering.
GP<GPixmap> get_pixmap(const GRect &rect, const GRect &all, double gamma=0) const
GP<GBitmap> get_bitmap(const GRect &rect, const GRect &all, int align = 1) const
GP<GPixmap> get_bg_pixmap(const GRect &rect, const GRect &all, double gamma=0) const
GP<GPixmap> get_fg_pixmap(const GRect &rect, const GRect &all, double gamma=0) const
Alphabetic index HTML hierarchy of classes or Java