
struct patternfield {
   int width;
   int height;
   int *pattern;
};


struct patternfield pattern(	ImagePtr* dest, ImagePtr imsource,
				int patternwidth, int patternheight,
				int xwidth, int ywidth, struct patternlist* list);
/*Does a pattern search in imsource, saves a pattern in imdest
  and gives back a struct patternfield (uses patternlist list of course*/


