diff -r 1081e3dd3f3e -r f7edb3b90816 ccdemos/image.h --- a/ccdemos/image.h Sun Apr 27 22:55:17 2008 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,20 +0,0 @@ -#ifndef IMAGE_H -#define IMAGE_H - -#define IMG_GRAYSCALE 1 -#define IMG_RGB 3 - -/* raw image */ -struct image { - int pixel_size; /* should be 1 for grayscale and 3 for RGB*/ - int width; - int height; - unsigned char *data; -}; - -int new_image(struct image **img, int width, int height, int pixelsize); -void destroy_image(struct image **img); - -int save_png(const char *fname, struct image *img); - -#endif