fltk::gifImage Class Reference

Inherits fltk::SharedImage.

List of all members.

Public Member Functions

bool fetch ()

Static Public Member Functions

static SharedImageget (const char *name, const uchar *datas=0)
static bool test (const uchar *datas, unsigned size=0)


Detailed Description

This can either display an image from a .gif image file, or from a block of data that is the contents of the image file. By using a block of data the image can be compiled into a program, this is whta Fluid does to imbed gif images into the source code and is currently the most efficient way to get a Fluid program to produce an image.

To use data, pass a non-null pointer as the second argument to the constructor. The filename is ignored in this case, but the "guess image" code uses this to identify identical images and reuse them (nyi)


Member Function Documentation

bool gifImage::test ( const uchar *  datas,
unsigned  size = 0 
) [static]

Tests block of data to see if it looks like the start of a .gif file.


Wed Jun 17 08:58:24 2009. FLTK ©2007 Bill Spitzak and others.
Permission is granted to reproduce this manual or any portion for any purpose, provided this copyright and permission notice are preserved.