ppmread.hpp 268 B

123456789101112
  1. #ifndef __PPMREAD__
  2. #define __PPMREAD__
  3. #include "image.hpp"
  4. #include "palette.hpp"
  5. #define PPM_R3G3B2 1
  6. #define PPM_BW 2
  7. #define PPM_REG 3
  8. extern image *read_ppm(char *fn,palette *&pal, int pal_type=0);
  9. extern void write_ppm(image *im,palette *pal,char *fn);
  10. #endif