PPM-image Quick Manual ------------------------------------------------------------------------------------------------ Original author: Thomas Möller This file: Johan Henriksson Install: -------- Nothing really, copy all the files into your project folder. Add ppmimage.cxx to the project to make sure it gets compiled. Add #include "ppmimage.h" to all your source files that makes use of ppmimage. Usage: ------ Check the header for the full set of functions available. For just reading PPM's then this piece of code will be sufficient: ... int width; int height; unsigned char *pixels; ... fReadPPM("foo.ppm", width, height, pixels); ...use the PPM here... delete [] pixels; The structure pixels then contains the data as RGBRGBRGB... ie a packed list of list of RGB-triplets.