#include #include #include "pictureviewer.h" unsigned char * simple_resize(unsigned char * orgin,int ox,int oy,int dx,int dy) { unsigned char *cr,*p,*l; int i,j,k,ip; cr=(unsigned char*) malloc(dx*dy*3); if(cr==NULL) { printf("Error: malloc\n"); return(orgin); } l=cr; for(j=0;j=ox) xb_v[i]=ox-1; } for(j=0;j=oy) yb=oy-1; for(i=0;i