fltk::xpmFileImage Class Reference

Inherits fltk::SharedImage.

List of all members.


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.


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)


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".


Fri Apr 2 15:19:55 2010. 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.