22# include "Fl_Pixmap.H"
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,
69 GIF_FRAME(
int frame,
uchar *
data) : ifrm(frame), bptr(
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);
void load(const char *filename, bool anim)
The protected load() methods are used by Fl_Anim_GIF_Image to request loading of animated GIF's.
Definition Fl_GIF_Image.cxx:787
static bool animate
Sets how the shared image core routine should treat animated GIF files.
Definition Fl_GIF_Image.H:44
Fl_GIF_Image(const char *filename)
This constructor loads a GIF image from the given file.
Definition Fl_GIF_Image.cxx:133
Definition Fl_Image_Reader.h:32
void data(const char *const *p, int c)
Sets the current data pointer and count of pointers in the array.
Definition Fl_Image.H:117
void h(int H)
Sets the height of the image data.
Definition Fl_Image.H:93
void w(int W)
Sets the width of the image data.
Definition Fl_Image.H:87
Fl_Pixmap(char *const *D)
The constructors create a new pixmap from the specified XPM data.
Definition Fl_Pixmap.H:58
unsigned char uchar
unsigned char
Definition fl_types.h:30
Definition Fl_GIF_Image.H:66
Definition Fl_GIF_Image.H:61