The Fast Light Environment Kit



class FPNM

Include Files

#include <Flek/FPNM.H>

Description

The fPNM class provides static methods that read, write and test PNM images. fPNM supports PBM (Portable Bitmap - ASCII (P1) and RAW (P4)), PGM (Portable Graymap - ASCII (P2) and RAW (P5)), and PPM (Portable Pixmap - ASCII (P3) and RAW (P6)), fPNM also supports the oft used but very non-standard PPM-P7, which is basically the P6 format with an alpha channel.

Methods


Method Descriptions

read

static FImage * FPNM::read(char *filename);

Read a PPM from disk and return a new fImage object.

valid

static bool FPNM::valid(char *filename);

Check the PBM/PGM/PPM magic number to see if this image matches any of the recognized formats.

write

static int FPNM::write(char *filename, FImage* img);

Write a PPM to disk from an fImage object.

© 2000 the Flek Development team.
Generated by ScanDoc
Last Updated: Tue May 15 8:50:06 2001