/* =============================================================================
 * =============================================================================
 * CPSC 514 Advanced Computer Graphics / Assignment 1
 *
 * file: png.h
 *
 * header for png file read/write
 *
 * Author: Andrew Nealen, Dept. of Computer Science, UBC Vancouver
 * Date: 01/24/02
 * =============================================================================
 * =============================================================================
 */

unsigned char *
loadPNG( const char *filename,
	 unsigned int& width, unsigned int &height,
	 unsigned int &numComponents );
void outputGreyscaleImageData(const char*,
			      unsigned char*, int, int);
void outputRGBImageData(const char*,
			unsigned char*, int, int);
void outputGreyscaleImageDataAsPPM(const char*,
				   unsigned char*, int, int);
