Fl_PNM_Image Class Reference

The Fl_PNM_Image class supports loading, caching, and drawing of Portable Anymap (PNM, PBM, PGM, PPM) image files. More...

#include <Fl_PNM_Image.H>

Inheritance diagram for Fl_PNM_Image:
Fl_RGB_Image Fl_Image

List of all members.

Public Member Functions

 Fl_PNM_Image (const char *filename)
 The constructor loads the named PNM image.

Detailed Description

The Fl_PNM_Image class supports loading, caching, and drawing of Portable Anymap (PNM, PBM, PGM, PPM) image files.

The class loads bitmap, grayscale, and full-color images in both ASCII and binary formats.


Constructor & Destructor Documentation

Fl_PNM_Image::Fl_PNM_Image ( const char *  name  ) 

The constructor loads the named PNM image.

The destructor frees all memory and server resources that are used by the image.

Use Fl_Image::fail() to check if Fl_PNM_Image failed to load. fail() returns ERR_FILE_ACCESS if the file could not be opened or read, ERR_FORMAT if the PNM format could not be decoded, and ERR_NO_IMAGE if the image could not be loaded for another reason.


The documentation for this class was generated from the following files: