/* sep 03 jch
http://www.mit.edu/afs/athena/contrib/graphics/src/xpaint2.2/rw/
*/

/*
 * End of "$Id: image.h,v 1.2 2003/09/23 02:53:45 jch Exp $".
 */

/*
 * Make this header file work with C and C++ source code...
 */
#ifndef _IMAGE_H_
#  define _IMAGE_H_


typedef struct {
  int width;
  int height;
  int isGrey;
  int cmapSize;
  void *data;
} Image;


#  ifdef __cplusplus
extern "C" {
#  endif /* __cplusplus */
extern int WriteJPEG(char *file, int quality, Image * outImage);
#  ifdef __cplusplus
}
#  endif /* __cplusplus */
#endif /* !_IMAGE_H_ */
