All pastes #771299 Raw Edit

houlala

public c v1 · immutable
·published 2007-11-12 22:20 UTC
rendered paste body
#ifndef __Image__#define __Image__#include <fstream>class Image{		private : 				int 			width;		int 			height;					int 			depth;		int				offset;				void		  * buffer;						bool loadPNM(std::ifstream & _file);			void clear();		public : 				Image();		Image(int _w, int _h, int _d);		Image(const char * _filename);		Image(const Image & _i);		~Image();					bool load(const char * _filename);			void display() const;			int getWidth() const;		int getHeight() const;	};#endif