22# include "Fl_Pixmap.H"
35 Fl_GIF_Image(
const char* imagename,
const unsigned char *data);
37 Fl_GIF_Image(
const char* imagename,
const unsigned char *data,
const size_t length);
39 static bool is_animated(
const char *name_);
50 Fl_GIF_Image(
const char* imagename,
const unsigned char *data,
const size_t length,
bool anim);
56 void load(
const char* filename,
bool anim);
57 void load(
const char* imagename,
const unsigned char *data,
const size_t length,
bool anim);
62 int ifrm, width, height, x, y, w, h,
70 GIF_FRAME(
int frame,
int W,
int H,
int fx,
int fy,
int fw,
int fh,
uchar *data) :
71 ifrm(frame), width(W), height(H), x(fx), y(fy), w(fw), h(fh), bptr(data) {}
72 void disposal(
int mode,
int time) { dispose = mode; this->delay = time; }
73 void colors(
int nclrs,
int bg,
int tp) { clrs = nclrs; bkgd = bg; trans = tp; }
78 virtual void on_frame_data(GIF_FRAME &) {}
79 virtual void on_extension_data(GIF_FRAME &) {}
83 void lzw_decode(
Fl_Image_Reader &rdr,
uchar *Image,
int Width,
int Height,
int CodeSize,
int ColorMapSize,
int Interlace);
The Fl_GIF_Image class supports loading, caching, and drawing of Compuserve GIFSM images.
Definition: Fl_GIF_Image.H:29
static bool animate
Sets how the shared image core routine should treat animated GIF files.
Definition: Fl_GIF_Image.H:44
Definition: Fl_Image_Reader.h:32
The Fl_Pixmap class supports caching and drawing of colormap (pixmap) images, including transparency.
Definition: Fl_Pixmap.H:36
unsigned char uchar
unsigned char
Definition: fl_types.h:30
Definition: Fl_GIF_Image.H:66
Definition: Fl_GIF_Image.H:61