
int scale(ImagePtr* dest, ImagePtr imsource,int width,int height,
	int x11,int y11, int x12, int y12, int x13,int y13,int x14,int y14,
	int x21,int y21, int x22, int y22, int x23,int y23,int x24,int y24);
/*rescale imsource to size width,height and saves the result in dest
  also the pixels are shifted according to reference shifts in 4 edges*/

