fltk::xpmFileImage 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

Image type that reads a .xpm (X Pixmap) file in from disk.

The normal use of a .xpm file is to include it into your source code. In that case you want to use an fltk::xpmImage object.


Member Function Documentation

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

Test a block of data read from the start of the file to see if it looks like the start of a .xpm file. This returns true if the data contains "/\* XPM".


Wed Jun 17 08:45:40 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.